public function Handler::supportsMethod in JSON-RPC 2.x
Same name and namespace in other branches
- 8 src/Handler.php \Drupal\jsonrpc\Handler::supportsMethod()
Whether the given method is supported.
Parameters
string $name: The method name for which support should be determined.
Return value
bool Whether the handler supports the given method name.
Overrides HandlerInterface::supportsMethod
File
- src/
Handler.php, line 83
Class
- Handler
- Manages all the JSON-RPC business logic.
Namespace
Drupal\jsonrpcCode
public function supportsMethod($name) {
return !is_null($this
->getMethod($name));
}