WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

ProductCategories::get_block_type_attributes() protected WC 1.0

Get block attributes.

{} It's a 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();

Code of ProductCategories::get_block_type_attributes() WC 5.6.0

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