Automattic\WooCommerce\Blocks\BlockTypes
MiniCartContents::get_block_type_editor_script
Get the editor script handle for this block type.
Метод класса: MiniCartContents{}
Хуков нет.
Возвращает
Массив|Строку;.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_block_type_editor_script( $key );
- $key(строка)
- Data to get, or default to everything.
По умолчанию:null
Код MiniCartContents::get_block_type_editor_script() MiniCartContents::get block type editor script WC 10.4.3
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;
}