Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection
HandlerRegistry::get_collection_handler()
Get collection handler by name.
Method of the class: HandlerRegistry{}
No Hooks.
Return
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() HandlerRegistry::get collection handler code WC 9.6.1
public function get_collection_handler( $name ) { return $this->collection_handler_store[ $name ] ?? null; }