Automattic\WooCommerce\Blocks\BlockTypes

Checkout::register_block_type_assets()protectedWC 1.0

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

This registers the scripts; it does not enqueue them.

Method of the class: Checkout{}

No Hooks.

Return

null. Nothing (null).

Usage

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

Checkout::register_block_type_assets() code WC 9.4.2

protected function register_block_type_assets() {
	parent::register_block_type_assets();
	$chunks        = $this->get_chunks_paths( $this->chunks_folder );
	$vendor_chunks = $this->get_chunks_paths( 'vendors--checkout-blocks' );
	$shared_chunks = [ 'cart-blocks/cart-express-payment--checkout-blocks/express-payment-frontend' ];
	$this->register_chunk_translations( array_merge( $chunks, $vendor_chunks, $shared_chunks ) );
}