You are here

public static function ConfigActionsFile::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 ConfigActionsSourceBase::create

File

src/Plugin/ConfigActionsSource/ConfigActionsFile.php, line 62

Class

ConfigActionsFile
Plugin for config source from files.

Namespace

Drupal\config_actions\Plugin\ConfigActionsSource

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');

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