Automattic\WooCommerce\EmailEditor\Engine

Theme_Controller::get_layout_settings │ public │ WC 1.0

Get layout settings from the theme.

Method of the class: Theme_Controller{}

No Hooks.

Returns

array{contentSize: string, wideSize?: string, allowEditing?: bool, allowCustomContentAndWideSize?: bool}.

Usage

$Theme_Controller = new Theme_Controller();
$Theme_Controller->get_layout_settings(): array;

Theme_Controller::get_layout_settings() code WC 11.1.2

public function get_layout_settings(): array {
	return $this->get_theme()->get_settings()['layout'];
}