Automattic\WooCommerce\Blocks\BlockTypes
EmailContent::get_block_type_editor_script
Get the editor script handle for this block type.
Method of the class: EmailContent{}
No Hooks.
Returns
Array|String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_block_type_editor_script( $key );
- $key(string)
- Data to get, or default to everything.
Default: null
EmailContent::get_block_type_editor_script() EmailContent::get block type editor script code WC 10.3.6
protected function get_block_type_editor_script( $key = null ) {
$script = [
'handle' => 'wc-' . $this->block_name . '-block',
'path' => $this->asset_api->get_block_asset_build_path( $this->block_name ),
'dependencies' => [ 'wc-blocks' ],
];
return $key ? $script[ $key ] : $script;
}