Automattic\WooCommerce\Blocks\BlockTypes

AbstractDynamicBlock::get_schema_align()protectedWC 1.0

Get the schema for the alignment property.

Method of the class: AbstractDynamicBlock{}

No Hooks.

Return

Array. Property definition for align.

Usage

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

AbstractDynamicBlock::get_schema_align() code WC 8.7.0

protected function get_schema_align() {
	return array(
		'type' => 'string',
		'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),
	);
}