public function ConditionBase::__construct in GoogleTagManager 8
Overrides \Drupal\Component\Plugin\PluginBase::__construct().
Overrides the construction of context aware plugins to allow for unvalidated constructor based injection of contexts.
Parameters
array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides ContextAwarePluginBase::__construct
2 calls to ConditionBase::__construct()
- Domain::__construct in src/
Plugin/ Condition/ Domain.php - Constructs a domain condition plugin.
- Language::__construct in src/
Plugin/ Condition/ Language.php - Constructs a language condition plugin.
2 methods override ConditionBase::__construct()
- Domain::__construct in src/
Plugin/ Condition/ Domain.php - Constructs a domain condition plugin.
- Language::__construct in src/
Plugin/ Condition/ Language.php - Constructs a language condition plugin.
File
- src/
ConditionBase.php, line 77
Class
- ConditionBase
- Provides a basis for fulfilling contexts for condition plugins.
Namespace
Drupal\google_tagCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this
->setConfiguration($configuration);
}