Automattic\WooCommerce\Blocks\BlockTypes

HandpickedProducts::get_block_type_attributes()protectedWC 1.0

Get block attributes.

Method of the class: HandpickedProducts{}

No Hooks.

Return

Array.

Usage

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

HandpickedProducts::get_block_type_attributes() code WC 8.7.0

protected function get_block_type_attributes() {
	return array(
		'align'             => $this->get_schema_align(),
		'alignButtons'      => $this->get_schema_boolean( false ),
		'className'         => $this->get_schema_string(),
		'columns'           => $this->get_schema_number( wc_get_theme_support( 'product_blocks::default_columns', 3 ) ),
		'orderby'           => $this->get_schema_orderby(),
		'products'          => $this->get_schema_list_ids(),
		'contentVisibility' => $this->get_schema_content_visibility(),
		'isPreview'         => $this->get_schema_boolean( false ),
	);
}