return null;
} /*
* If the experimental duotone support was set, that value is to be
* treated as a selector and requires scoping.
*/
$experimental_duotone =
_wp_array_get( $block_type->supports, array
( 'color', '__experimentalDuotone'
), false
);
if ( $experimental_duotone ) { $root_selector =
wp_get_block_css_selector( $block_type );
return is_string( $experimental_duotone ) ? WP_Theme_JSON::
scope_selector( $root_selector,
$experimental_duotone ) :
$root_selector;
} // Regular filter.duotone support uses filter.duotone selectors with fallbacks.
return wp_get_block_css_selector( $block_type, array
( 'filter', 'duotone'
), true
);
} /**
* Scrape all possible duotone presets from global and theme styles and
* store them in self::$global_styles_presets.
*
* Used in conjunction with self::render_duotone_support for blocks that
* use duotone preset filters.
*
* @since 6.3.0
*
* @return array An array of global styles presets, keyed on the filter ID.
*/