Automattic\WooCommerce\Admin\BlockTemplates

ContainerInterface::get_block()publicWC 1.0

Get a block by ID.

Method of the class: ContainerInterface{}

No Hooks.

Return

null. Nothing (null).

Usage

$ContainerInterface = new ContainerInterface();
$ContainerInterface->get_block( $block_id ): ?BlockInterface;
$block_id(string) (required)
The block ID.

ContainerInterface::get_block() code WC 9.0.1

public function get_block( string $block_id ): ?BlockInterface;