Automattic\WooCommerce\Internal\Admin\BlockTemplates

Block::add_block()publicWC 1.0

Add an inner block to this block.

Method of the class: Block{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Block = new Block();
$Block->&add_block( $block_config ): BlockInterface;
$block_config(array) (required)
The block data.

Block::add_block() code WC 9.8.4

public function &add_block( array $block_config ): BlockInterface {
	$block = new Block( $block_config, $this->get_root_template(), $this );
	return $this->add_inner_block( $block );
}