Automattic\WooCommerce\Internal\ProductFeed\Mapping
UcpProductMapper::schema
Get the product schema, resolving the UCP one from the Store API container on first use.
Method of the class: UcpProductMapper{}
No Hooks.
Returns
ProductSchema.
Usage
// private - for code of main (parent) class only $result = $this->schema(): ProductSchema;
UcpProductMapper::schema() UcpProductMapper::schema code WC 11.3.0
private function schema(): ProductSchema {
if ( null === $this->schema ) {
$this->schema = StoreApi::container()->get( SchemaController::class )->get( UcpProductSchema::IDENTIFIER );
}
return $this->schema;
}