WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

AllReviews::get_block_type_script() protected WC 1.0

Get the frontend script handle for this block type.

{} It's a method of the class: AllReviews{}

No Hooks.

Return

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

Code of AllReviews::get_block_type_script() WC 5.7.1

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;
}