WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi

SchemaController::initialize() protected WC 1.0

Load schema class instances.

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->initialize();

Code of SchemaController::initialize() WC 5.8.0

protected function initialize() {
	$this->schemas                                       = [];
	$this->schemas[ ErrorSchema::IDENTIFIER ]            = new ErrorSchema( $this->extend );
	$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]  = new ImageAttachmentSchema( $this->extend );
	$this->schemas[ TermSchema::IDENTIFIER ]             = new TermSchema( $this->extend );
	$this->schemas[ BillingAddressSchema::IDENTIFIER ]   = new BillingAddressSchema( $this->extend );
	$this->schemas[ ShippingAddressSchema::IDENTIFIER ]  = new ShippingAddressSchema( $this->extend );
	$this->schemas[ CartShippingRateSchema::IDENTIFIER ] = new CartShippingRateSchema( $this->extend );
	$this->schemas[ CartCouponSchema::IDENTIFIER ]       = new CartCouponSchema( $this->extend );
	$this->schemas[ CartFeeSchema::IDENTIFIER ]          = new CartFeeSchema( $this->extend );
	$this->schemas[ CartItemSchema::IDENTIFIER ]         = new CartItemSchema(
		$this->extend,
		$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]
	);
	$this->schemas[ CartSchema::IDENTIFIER ]             = new CartSchema(
		$this->extend,
		$this->schemas[ CartItemSchema::IDENTIFIER ],
		$this->schemas[ CartCouponSchema::IDENTIFIER ],
		$this->schemas[ CartFeeSchema::IDENTIFIER ],
		$this->schemas[ CartShippingRateSchema::IDENTIFIER ],
		$this->schemas[ ShippingAddressSchema::IDENTIFIER ],
		$this->schemas[ BillingAddressSchema::IDENTIFIER ],
		$this->schemas[ ErrorSchema::IDENTIFIER ]
	);
	$this->schemas[ CartExtensionsSchema::IDENTIFIER ]   = new CartExtensionsSchema(
		$this->extend
	);
	$this->schemas[ CheckoutSchema::IDENTIFIER ]         = new CheckoutSchema(
		$this->extend,
		$this->schemas[ BillingAddressSchema::IDENTIFIER ],
		$this->schemas[ ShippingAddressSchema::IDENTIFIER ]
	);
	$this->schemas[ ProductSchema::IDENTIFIER ]          = new ProductSchema(
		$this->extend,
		$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]
	);
	$this->schemas[ ProductAttributeSchema::IDENTIFIER ] = new ProductAttributeSchema( $this->extend );
	$this->schemas[ ProductCategorySchema::IDENTIFIER ]  = new ProductCategorySchema(
		$this->extend,
		$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]
	);
	$this->schemas[ ProductCollectionDataSchema::IDENTIFIER ] = new ProductCollectionDataSchema( $this->extend );
	$this->schemas[ ProductReviewSchema::IDENTIFIER ]         = new ProductReviewSchema(
		$this->extend,
		$this->schemas[ ImageAttachmentSchema::IDENTIFIER ]
	);
}