Automattic\WooCommerce\Admin\Features\ProductBlockEditor

BlockRegistry::get_instance()public staticWC 1.0

Get the singleton instance.

Method of the class: BlockRegistry{}

No Hooks.

Return

null. Nothing (null).

Usage

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

BlockRegistry::get_instance() code WC 9.2.3

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

	return self::$instance;
}