Automattic\WooCommerce\Blocks\BlockTypes

AbstractProductGrid::get_block_type_styleprotectedWC 1.0

Get the frontend style handle for this block type.

Method of the class: AbstractProductGrid{}

No Hooks.

Returns

String[].

Usage

// protected - for code of main (parent) or child class
$result = $this->get_block_type_style();

AbstractProductGrid::get_block_type_style() code WC 9.9.5

protected function get_block_type_style() {
	// Currently these blocks rely on the styles from the All Products block.
	return [ 'wc-blocks-style', 'wc-blocks-style-all-products' ];
}