Automattic\WooCommerce\Blocks\BlockTypes

ProductCategory::get_block_type_attributesprotectedWC 1.0

Get block attributes.

Method of the class: ProductCategory{}

No Hooks.

Returns

Array.

Usage

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

ProductCategory::get_block_type_attributes() code WC 9.9.3

protected function get_block_type_attributes() {
	return array_merge(
		parent::get_block_type_attributes(),
		array(
			'className' => $this->get_schema_string(),
			'orderby'   => $this->get_schema_orderby(),
			'editMode'  => $this->get_schema_boolean( true ),
		)
	);
}