You are here

public function MaintenanceModeEnabled::__construct in JSON-RPC 2.x

Same name and namespace in other branches
  1. 8 modules/jsonrpc_core/src/Plugin/jsonrpc/Method/MaintenanceModeEnabled.php \Drupal\jsonrpc_core\Plugin\jsonrpc\Method\MaintenanceModeEnabled::__construct()

MaintenanceModeEnabled constructor.

Parameters

array $configuration: The configuration.

string $plugin_id: The ID of the plugin.

\Drupal\jsonrpc\MethodInterface $plugin_definition: The plugin definition.

\Drupal\Core\State\StateInterface $state: The state API service.

Overrides JsonRpcMethodBase::__construct

File

modules/jsonrpc_core/src/Plugin/jsonrpc/Method/MaintenanceModeEnabled.php, line 47

Class

MaintenanceModeEnabled
RPC method to enable or disable maintenance mode.

Namespace

Drupal\jsonrpc_core\Plugin\jsonrpc\Method

Code

public function __construct(array $configuration, $plugin_id, MethodInterface $plugin_definition, StateInterface $state) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->state = $state;
}