WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

AbstractDynamicBlock::get_schema_string() protected WC 1.0

Get the schema for a string value.

{} It's a method of the class: AbstractDynamicBlock{}

No Hooks.

Return

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: ''

Code of AbstractDynamicBlock::get_schema_string() WC 5.6.0

protected function get_schema_string( $default = '' ) {
	return array(
		'type'    => 'string',
		'default' => $default,
	);
}