WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

AbstractBlock::register_block_type() protected WC 1.0

Registers the block type with WordPress.

{} It's a method of the class: AbstractBlock{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->register_block_type();

Code of AbstractBlock::register_block_type() WC 5.6.0

protected function register_block_type() {
	register_block_type(
		$this->get_block_type(),
		array(
			'render_callback' => $this->get_block_type_render_callback(),
			'editor_script'   => $this->get_block_type_editor_script( 'handle' ),
			'editor_style'    => $this->get_block_type_editor_style(),
			'style'           => $this->get_block_type_style(),
			'attributes'      => $this->get_block_type_attributes(),
			'supports'        => $this->get_block_type_supports(),
		)
	);
}