WordPress at a glance
class is not described

Automattic\WooCommerce\Blocks\BlockTypes

ReviewsByProduct{} WC 1.0

ReviewsByProduct class.

No Hooks.

Return

null. Nothing.

Usage

$ReviewsByProduct = new ReviewsByProduct();
// use class methods

Methods

  1. get_block_type_script( $key = null )

Code of ReviewsByProduct{} WC 5.3.0

<?php
class ReviewsByProduct extends AbstractBlock {
	/**
	 * Block name.
	 *
	 * @var string
	 */
	protected $block_name = 'reviews-by-product';

	/**
	 * Get the frontend script handle for this block type.
	 *
	 * @see $this->register_block_type()
	 * @param string $key Data to get, or default to everything.
	 * @return array|string
	 */
	protected function get_block_type_script( $key = null ) {
		$script = [
			'handle'       => 'wc-reviews-frontend',
			'path'         => $this->asset_api->get_block_asset_build_path( 'reviews-frontend' ),
			'dependencies' => [],
		];
		return $key ? $script[ $key ] : $script;
	}
}