Automattic\WooCommerce\Admin\Features\ProductBlockEditor

BlockRegistry::get_instancepublic staticWC 1.0

Get the singleton instance.

Method of the class: BlockRegistry{}

No Hooks.

Returns

BlockRegistry.

Usage

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

BlockRegistry::get_instance() code WC 11.0.1

public static function get_instance(): BlockRegistry {
	$instance = self::$instance;

	if ( null === $instance ) {
		$instance       = new self();
		self::$instance = $instance;
	}

	self::maybe_log_removal_warning();

	return $instance;
}