Automattic\WooCommerce\Blocks\BlockTypes\OrderConfirmation
CreateAccount::get_block_type_script
Get the frontend script handle for this block type.
Method of the class: CreateAccount{}
No Hooks.
Returns
Array|String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_block_type_script( $key );
- $key(string)
- Data to get, or default to everything.
Default: null
Notes
- See: $this->register_block_type()
CreateAccount::get_block_type_script() CreateAccount::get block type script code WC 10.4.3
protected function get_block_type_script( $key = null ) {
$script = [
'handle' => 'wc-order-confirmation-create-account-block-frontend',
'path' => $this->asset_api->get_block_asset_build_path( 'order-confirmation-create-account-frontend' ),
'dependencies' => [],
];
return $key ? $script[ $key ] : $script;
}