Automattic\WooCommerce\Blocks\BlockTypes
AbstractProductGrid::get_schema_content_visibility
Get the schema for the contentVisibility attribute
Method of the class: AbstractProductGrid{}
No Hooks.
Returns
Array. List of block attributes with type and defaults.
Usage
// protected - for code of main (parent) or child class $result = $this->get_schema_content_visibility();
AbstractProductGrid::get_schema_content_visibility() AbstractProductGrid::get schema content visibility code WC 10.7.0
protected function get_schema_content_visibility() {
return array(
'type' => 'object',
'properties' => array(
'image' => $this->get_schema_boolean( true ),
'title' => $this->get_schema_boolean( true ),
'price' => $this->get_schema_boolean( true ),
'rating' => $this->get_schema_boolean( true ),
'button' => $this->get_schema_boolean( true ),
),
);
}