Automattic\WooCommerce\Blocks\BlockTypes
ReviewsByCategory::get_block_type_script
Get the frontend script handle for this block type.
Метод класса: ReviewsByCategory{}
Хуков нет.
Возвращает
Массив|Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_block_type_script( $key );
- $key(строка)
- Data to get, or default to everything.
По умолчанию:null
Заметки
- Смотрите: $this->register_block_type()
Код ReviewsByCategory::get_block_type_script() ReviewsByCategory::get block type script WC 10.7.0
protected function get_block_type_script( $key = null ) {
$script = [
'handle' => 'wc-reviews-block-frontend',
'path' => $this->asset_api->get_block_asset_build_path( 'reviews-frontend' ),
'dependencies' => [],
];
return $key ? $script[ $key ] : $script;
}