Automattic\WooCommerce\Internal

RestApiControllerBase::get_rest_api_namespace()protectedWC 1.0

Get the WooCommerce REST API namespace for the class. It must be unique across all other derived classes and the keys returned by the 'get_vX_controllers' methods in includes/rest-api/Server.php. Note that this value is NOT related to the route namespace.

Method of the class: RestApiControllerBase{}

No Hooks.

Return

String.

Usage

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

RestApiControllerBase::get_rest_api_namespace() code WC 9.3.3

abstract protected function get_rest_api_namespace(): string;