Automattic\WooCommerce\Blueprint\Steps
ActivatePlugin::get_schema
Returns the schema for the JSON representation of this step.
Method of the class: ActivatePlugin{}
No Hooks.
Returns
Array
. The schema array.
Usage
$result = ActivatePlugin::get_schema( $version ): array;
- $version(int)
- The version of the schema to return.
Default: 1
ActivatePlugin::get_schema() ActivatePlugin::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() ), ), 'pluginName' => array( 'type' => 'string', ), 'pluginPath' => array( 'type' => 'string', ), ), 'required' => array( 'step', 'pluginPath' ), ); }