Automattic\WooCommerce\Blueprint

ImportSchema::importpublicWC 1.0

Import the schema steps.

Method of the class: ImportSchema{}

No Hooks.

Returns

StepProcessorResult[].

Usage

$ImportSchema = new ImportSchema();
$ImportSchema->import();

ImportSchema::import() code WC 9.9.5

public function import() {
	$results   = array();
	$result    = StepProcessorResult::success( 'ImportSchema' );
	$results[] = $result;

	foreach ( $this->schema->get_steps() as $step_schema ) {
		$step_importer = new ImportStep( $step_schema, $this->validator );
		$results[]     = $step_importer->import();
	}

	return $results;
}