Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

HandlerRegistry::get_collection_handlerpublicWC 1.0

Get collection handler by name.

Method of the class: HandlerRegistry{}

No Hooks.

Returns

Array|null. Collection handler array or null if not found.

Usage

$HandlerRegistry = new HandlerRegistry();
$HandlerRegistry->get_collection_handler( $name );
$name(string) (required)
Collection name.

HandlerRegistry::get_collection_handler() code WC 10.5.0

public function get_collection_handler( $name ) {
	return $this->collection_handler_store[ $name ] ?? null;
}