You are here

public function ConfigActionsId::__construct in Config Actions 8

Constructs a new ConfigActionsSource object.

Parameters

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.

ConfigActionsServiceInterface $config_action_service: The ConfigActionsService from the container.

ConfigFactory $config_factory: The ConfigFactory from the container.

\Drupal\Core\Config\StorageInterface $config_storage: The configuration storage.

\Drupal\Core\Config\ConfigManagerInterface $config_manager: The configuration manager.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

Overrides ConfigActionsSourceBase::__construct

File

src/Plugin/ConfigActionsSource/ConfigActionsId.php, line 76

Class

ConfigActionsId
Plugin for config id from the active store.

Namespace

Drupal\config_actions\Plugin\ConfigActionsSource

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigActionsServiceInterface $config_action_service, ConfigFactory $config_factory, StorageInterface $config_storage, ConfigManagerInterface $config_manager, MessengerInterface $messenger) {
  $this->configFactory = $config_factory;
  $this->configStorage = $config_storage;
  $this->configManager = $config_manager;
  $this->messenger = $messenger;
  parent::__construct($configuration, $plugin_id, $plugin_definition, $config_action_service);
}