Automattic\WooCommerce\EmailEditor\Engine

Theme_Controller::get_stylesheet_from_contextpublicWC 1.0

Get stylesheet from context.

Method of the class: Theme_Controller{}

No Hooks.

Returns

String.

Usage

$Theme_Controller = new Theme_Controller();
$Theme_Controller->get_stylesheet_from_context( $context, $options ): string;
$context(string) (required)
Context.
$options(array)
Options.
Default: array()

Theme_Controller::get_stylesheet_from_context() code WC 10.6.2

public function get_stylesheet_from_context( $context, $options = array() ): string {
	return function_exists( 'gutenberg_style_engine_get_stylesheet_from_context' ) ? gutenberg_style_engine_get_stylesheet_from_context( $context, $options ) : wp_style_engine_get_stylesheet_from_context( $context, $options );
}