Automattic\WooCommerce\Api\Infrastructure
GraphQLControllerBase::principal_resolver_takes_request
Whether the configured PrincipalResolver's resolve_principal() declares the \WP_REST_Request parameter (true) or omits it (false).
Captured at build time and emitted as an override on the autogenerated controller subclass, so the call below uses the right arity without runtime reflection. Default is irrelevant when {@see self::get_principal_resolver_fqcn()} returns null (the inline wp_get_current_user() applies instead).
Method of the class: GraphQLControllerBase{}
No Hooks.
Returns
null. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->principal_resolver_takes_request(): bool;
GraphQLControllerBase::principal_resolver_takes_request() GraphQLControllerBase::principal resolver takes request code WC 10.9.1
protected function principal_resolver_takes_request(): bool {
return false;
}