You are here

public static function ConfigActionsPluginBase::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

File

src/ConfigActionsPluginBase.php, line 171

Class

ConfigActionsPluginBase
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);
}