Automattic\WooCommerce\Blocks\BlockTypes

ProductCategories::get_block_type_attributes()protectedWC 1.0

Get block attributes.

Method of the class: ProductCategories{}

No Hooks.

Return

Array.

Usage

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

ProductCategories::get_block_type_attributes() code WC 9.3.3

protected function get_block_type_attributes() {
	return array_merge(
		parent::get_block_type_attributes(),
		array(
			'align'            => $this->get_schema_align(),
			'className'        => $this->get_schema_string(),
			'hasCount'         => $this->get_schema_boolean( true ),
			'hasImage'         => $this->get_schema_boolean( false ),
			'hasEmpty'         => $this->get_schema_boolean( false ),
			'isDropdown'       => $this->get_schema_boolean( false ),
			'isHierarchical'   => $this->get_schema_boolean( true ),
			'showChildrenOnly' => $this->get_schema_boolean( false ),
			'textColor'        => $this->get_schema_string(),
			'fontSize'         => $this->get_schema_string(),
			'lineHeight'       => $this->get_schema_string(),
			'style'            => array( 'type' => 'object' ),
		)
	);
}