public function FlagTypeBase::__construct in Flag 8.4
Constructs a \Drupal\Component\Plugin\PluginBase 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.
Overrides PluginBase::__construct
1 call to FlagTypeBase::__construct()
- EntityFlagType::__construct in src/
Plugin/ Flag/ EntityFlagType.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
1 method overrides FlagTypeBase::__construct()
- EntityFlagType::__construct in src/
Plugin/ Flag/ EntityFlagType.php - Constructs a \Drupal\Component\Plugin\PluginBase object.
File
- src/
FlagType/ FlagTypeBase.php, line 34
Class
- FlagTypeBase
- Provides a base class for flag type plugins.
Namespace
Drupal\flag\FlagTypeCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, ModuleHandlerInterface $module_handler, TranslationInterface $string_translation) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->moduleHandler = $module_handler;
$this->configuration += $this
->defaultConfiguration();
$this->stringTranslation = $string_translation;
}