Automattic\WooCommerce\Blocks\BlockTypes

AbstractDynamicBlock::get_schema_list_ids()protectedWC 1.0

Get the schema for a list of IDs.

Method of the class: AbstractDynamicBlock{}

No Hooks.

Return

Array. Property definition for a list of numeric ids.

Usage

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

AbstractDynamicBlock::get_schema_list_ids() code WC 8.6.1

protected function get_schema_list_ids() {
	return array(
		'type'    => 'array',
		'items'   => array(
			'type' => 'number',
		),
		'default' => array(),
	);
}