WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

AbstractBlock::register_block_type_assets() protected WC 1.0

Register script and style assets for the block type before it is registered.

This registers the scripts; it does not enqueue them.

{} 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_assets();

Code of AbstractBlock::register_block_type_assets() WC 5.6.0

protected function register_block_type_assets() {
	if ( null !== $this->get_block_type_editor_script() ) {
		$this->asset_api->register_script(
			$this->get_block_type_editor_script( 'handle' ),
			$this->get_block_type_editor_script( 'path' ),
			array_merge(
				$this->get_block_type_editor_script( 'dependencies' ),
				$this->integration_registry->get_all_registered_editor_script_handles()
			)
		);
	}
	if ( null !== $this->get_block_type_script() ) {
		$this->asset_api->register_script(
			$this->get_block_type_script( 'handle' ),
			$this->get_block_type_script( 'path' ),
			array_merge(
				$this->get_block_type_script( 'dependencies' ),
				$this->integration_registry->get_all_registered_script_handles()
			)
		);
	}
}