Automattic\WooCommerce\Blocks\BlockTypes
AbstractDynamicBlock::get_schema_align
Get the schema for the alignment property.
Method of the class: AbstractDynamicBlock{}
No Hooks.
Returns
Array. Property definition for align.
Usage
// protected - for code of main (parent) or child class $result = $this->get_schema_align();
AbstractDynamicBlock::get_schema_align() AbstractDynamicBlock::get schema align code WC 10.8.1
protected function get_schema_align() {
return array(
'type' => 'string',
'enum' => array( 'left', 'center', 'right', 'wide', 'full' ),
);
}