You are here

public static function ConfigActionsSourceBase::create in Config Actions 8

Create a plugin instance from the container

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container:

array $configuration:

string $plugin_id:

mixed $plugin_definition:

Return value

static

Overrides ContainerFactoryPluginInterface::create

3 methods override ConfigActionsSourceBase::create()
ConfigActionsFile::create in src/Plugin/ConfigActionsSource/ConfigActionsFile.php
Create a plugin instance from the container
ConfigActionsId::create in src/Plugin/ConfigActionsSource/ConfigActionsId.php
Create a plugin instance from the container
ConfigActionsTemplate::create in src/Plugin/ConfigActionsSource/ConfigActionsTemplate.php
Create a plugin instance from the container

File

src/ConfigActionsSourceBase.php, line 106

Class

ConfigActionsSourceBase
Base class for config_actions plugins.

Namespace

Drupal\config_actions

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {

  /** @var ConfigActionsServiceInterface $config_action_service */
  $config_action_service = $container
    ->get('config_actions');
  return new static($configuration, $plugin_id, $plugin_definition, $config_action_service);
}