WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\BlockTypes

AbstractDynamicBlock::get_schema_number() protected WC 1.0

Get the schema for a numeric 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_number( $default );
$default(string) (required)
The default value.

Code of AbstractDynamicBlock::get_schema_number() WC 5.7.1

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