Automattic\WooCommerce\Blocks\BlockTypes
Cart::register_block_type_assets
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: Cart{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->register_block_type_assets();
Cart::register_block_type_assets() Cart::register block type assets code WC 10.9.4
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--cart-blocks' );
$shared_chunks = [];
$this->register_chunk_translations( array_merge( $chunks, $vendor_chunks, $shared_chunks ) );
}