Automattic\WooCommerce\LayoutTemplates

LayoutTemplateRegistry::get_instance()public staticWC 1.0

Get the instance of the class.

Method of the class: LayoutTemplateRegistry{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = LayoutTemplateRegistry::get_instance(): LayoutTemplateRegistry;

LayoutTemplateRegistry::get_instance() code WC 8.9.0

public static function get_instance(): LayoutTemplateRegistry {
	if ( null === self::$instance ) {
		self::$instance = new self();
	}

	return self::$instance;
}