public function Handler::supportsMethod in JSON-RPC 8
Same name and namespace in other branches
- 2.x 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 70 
Class
- Handler
- Manages all the JSON-RPC business logic.
Namespace
Drupal\jsonrpcCode
public function supportsMethod($name) {
  return !is_null($this
    ->getMethod($name));
}