Automattic\WooCommerce\Internal\RestApi\Routes\V4

AbstractController::get_schemaprotectedWC 1.0

Get the schema for the current resource. This use consumed by the AbstractController to generate the item schema after running various hooks on the response.

This should return the full schema object, not just the properties.

Method of the class: AbstractController{}

No Hooks.

Returns

Array. The full item schema.

Usage

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

AbstractController::get_schema() code WC 10.4.3

abstract protected function get_schema(): array;