public static function MaintenanceModeEnabled::create in JSON-RPC 8
Same name and namespace in other branches
- 2.x modules/jsonrpc_core/src/Plugin/jsonrpc/Method/MaintenanceModeEnabled.php \Drupal\jsonrpc_core\Plugin\jsonrpc\Method\MaintenanceModeEnabled::create()
Create an instance of this plugin.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The DI container.
array $configuration: The configuration.
string $plugin_id: The ID of the plugin.
mixed $plugin_definition: The plugin definition.
Return value
\Drupal\jsonrpc_core\Plugin\jsonrpc\Method\MaintenanceModeEnabled An instance of the MaintenanceModeEnabled plugin.
Overrides JsonRpcMethodBase::create
File
- modules/
jsonrpc_core/ src/ Plugin/ jsonrpc/ Method/ MaintenanceModeEnabled.php, line 67
Class
- MaintenanceModeEnabled
- RPC method to enable or disable maintenance mode.
Namespace
Drupal\jsonrpc_core\Plugin\jsonrpc\MethodCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('state'));
}