Automattic\WooCommerce\Blocks\BlockTypes
ProductCategories::get_attributes() protected WC 1.0
Get block attributes.
{} Это метод класса: ProductCategories{}
Хуков нет.
Возвращает
Массив
. Null. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_attributes();
Код ProductCategories::get_attributes() ProductCategories::get attributes WC 5.1.0
protected function get_attributes() {
return array_merge(
parent::get_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 ),
)
);
}