You are here

public function ConfigActionsTemplate::__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.

FileSystem $file_system: The FileSystem from the container.

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

string $profile: The current installation profile.

Overrides ConfigActionsSourceBase::__construct

File

src/Plugin/ConfigActionsSource/ConfigActionsTemplate.php, line 54

Class

ConfigActionsTemplate
Plugin for config source from files.

Namespace

Drupal\config_actions\Plugin\ConfigActionsSource

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigActionsServiceInterface $config_action_service, StorageInterface $config_storage, $profile) {
  $this->templateStorage = new ExtensionInstallStorage($config_storage, ConfigActionsFile::CONFIG_TEMPLATE_DIRECTORY, ExtensionInstallStorage::DEFAULT_COLLECTION, TRUE, $profile);
  parent::__construct($configuration, $plugin_id, $plugin_definition, $config_action_service);
}