public function ConfigActionsSourceBase::__construct in Config Actions 8
Constructs a new ConfigActionsSource plugin 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.
Overrides PluginBase::__construct
3 calls to ConfigActionsSourceBase::__construct()
- ConfigActionsFile::__construct in src/
Plugin/ ConfigActionsSource/ ConfigActionsFile.php - Constructs a new ConfigActionsSource object.
- ConfigActionsId::__construct in src/
Plugin/ ConfigActionsSource/ ConfigActionsId.php - Constructs a new ConfigActionsSource object.
- ConfigActionsTemplate::__construct in src/
Plugin/ ConfigActionsSource/ ConfigActionsTemplate.php - Constructs a new ConfigActionsSource object.
3 methods override ConfigActionsSourceBase::__construct()
- ConfigActionsFile::__construct in src/
Plugin/ ConfigActionsSource/ ConfigActionsFile.php - Constructs a new ConfigActionsSource object.
- ConfigActionsId::__construct in src/
Plugin/ ConfigActionsSource/ ConfigActionsId.php - Constructs a new ConfigActionsSource object.
- ConfigActionsTemplate::__construct in src/
Plugin/ ConfigActionsSource/ ConfigActionsTemplate.php - Constructs a new ConfigActionsSource object.
File
- src/
ConfigActionsSourceBase.php, line 87
Class
- ConfigActionsSourceBase
- Base class for config_actions plugins.
Namespace
Drupal\config_actionsCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigActionsServiceInterface $config_action_service) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->actionService = $config_action_service;
$this->sourceId = !empty($configuration['source']) ? $configuration['source'] : '';
$this->sourceBase = !empty($configuration['base']) ? $configuration['base'] : '';
$this->pluginType = $plugin_id;
$this
->setData([], FALSE);
}