You are here

public function JsonRpcMethodBase::__construct in JSON-RPC 8

Same name and namespace in other branches
  1. 2.x src/Plugin/JsonRpcMethodBase.php \Drupal\jsonrpc\Plugin\JsonRpcMethodBase::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

4 calls to JsonRpcMethodBase::__construct()
MaintenanceModeEnabled::__construct in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/MaintenanceModeEnabled.php
MaintenanceModeEnabled constructor.
Plugins::__construct in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/Plugins.php
Plugins constructor.
RouteBuilder::__construct in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/RouteBuilder.php
RouteBuilder constructor.
UserPermissionsBase::__construct in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/UserPermissionsBase.php
UserPermissions constructor.
4 methods override JsonRpcMethodBase::__construct()
MaintenanceModeEnabled::__construct in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/MaintenanceModeEnabled.php
MaintenanceModeEnabled constructor.
Plugins::__construct in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/Plugins.php
Plugins constructor.
RouteBuilder::__construct in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/RouteBuilder.php
RouteBuilder constructor.
UserPermissionsBase::__construct in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/UserPermissionsBase.php
UserPermissions constructor.

File

src/Plugin/JsonRpcMethodBase.php, line 27

Class

JsonRpcMethodBase
Base implementation for JSON RPC methods.

Namespace

Drupal\jsonrpc\Plugin

Code

public function __construct(array $configuration, string $plugin_id, MethodInterface $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->rpcRequest = $configuration[HandlerInterface::JSONRPC_REQUEST_KEY];
}