Automattic\WooCommerce\EmailEditor\Engine

Settings_Controller::get_layoutpublicWC 1.0

Returns the layout settings for the email editor.

Method of the class: Settings_Controller{}

No Hooks.

Returns

Array{contentSize:. string, wideSize?: string}

Usage

$Settings_Controller = new Settings_Controller();
$Settings_Controller->get_layout(): array;

Settings_Controller::get_layout() code WC 10.8.1

public function get_layout(): array {
	$layout_settings = $this->theme_controller->get_layout_settings();
	$layout          = array(
		'contentSize' => $layout_settings['contentSize'],
	);
	if ( isset( $layout_settings['wideSize'] ) ) {
		$layout['wideSize'] = $layout_settings['wideSize'];
	}
	return $layout;
}