Automattic\WooCommerce\Blueprint\Steps

ActivateTheme::get_schemapublic staticWC 1.0

Returns the schema for the JSON representation of this step.

Method of the class: ActivateTheme{}

No Hooks.

Returns

Array. The schema array.

Usage

$result = ActivateTheme::get_schema( $version ): array;
$version(int)
The version of the schema to return.
Default: 1

ActivateTheme::get_schema() code WC 9.9.5

public static function get_schema( int $version = 1 ): array {
	return array(
		'type'       => 'object',
		'properties' => array(
			'step'            => array(
				'type' => 'string',
				'enum' => array( static::get_step_name() ),
			),
			'themeFolderName' => array(
				'type' => 'string',
			),
		),
		'required'   => array( 'step', 'themeFolderName' ),
	);
}