private static function get_global_styles_presets( $sources ) { $css = 'body{';
foreach ( $sources as $filter_id =>
$filter_data ) { $slug =
$filter_data['slug'
];
$colors =
$filter_data['colors'
];
$css_property_name = self::
get_css_custom_property_name( $slug );
$declaration_value =
is_string( $colors ) ?
$colors : self::
get_filter_url( $filter_id );
$css .= "
$css_property_name:
$declaration_value;";
} $css .= '}';
return $css;
} /**
* Enqueue a block CSS declaration for the page.
*
* This does not include any SVGs.
*
* @internal
*
* @since 6.3.0
*
* @param string $filter_id The filter ID. e.g. 'wp-duotone-000000-ffffff-2'.
* @param string $duotone_selector The block's duotone selector. e.g. '.wp-block-image img'.
* @param string $filter_value The filter CSS value. e.g. 'url(#wp-duotone-000000-ffffff-2)' or 'unset'.
*/