Automattic\WooCommerce\Blocks\BlockTypes
AbstractDynamicBlock::get_schema_string
Get the schema for a string value.
Method of the class: AbstractDynamicBlock{}
No Hooks.
Returns
Array. Property definition.
Usage
// protected - for code of main (parent) or child class $result = $this->get_schema_string( $default );
- $default(string)
- The default value.
Default:''
AbstractDynamicBlock::get_schema_string() AbstractDynamicBlock::get schema string code WC 10.5.0
protected function get_schema_string( $default = '' ) {
return array(
'type' => 'string',
'default' => $default,
);
}