You are here

public static function JsonRpcMethodBase::create in JSON-RPC 8

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

Creates an instance of the plugin.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the plugin.

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.

Return value

static Returns an instance of this plugin.

Overrides ContainerFactoryPluginInterface::create

4 methods override JsonRpcMethodBase::create()
MaintenanceModeEnabled::create in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/MaintenanceModeEnabled.php
Create an instance of this plugin.
Plugins::create in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/Plugins.php
Creates a new Plugin.
RouteBuilder::create in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/RouteBuilder.php
Creates an instance of the plugin.
UserPermissionsBase::create in modules/jsonrpc_core/src/Plugin/jsonrpc/Method/UserPermissionsBase.php
Creates an instance of the plugin.

File

src/Plugin/JsonRpcMethodBase.php, line 35

Class

JsonRpcMethodBase
Base implementation for JSON RPC methods.

Namespace

Drupal\jsonrpc\Plugin

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition);
}