public function EntityFlagType::__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 FlagTypeBase::__construct
File
- src/
Plugin/ Flag/ EntityFlagType.php, line 50
Class
- EntityFlagType
- Provides a flag type for all entity types.
Namespace
Drupal\flag\Plugin\FlagCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
$this->entityType = $plugin_definition['entity_type'];
$this->entityTypeManager = $entity_type_manager;
parent::__construct($configuration, $plugin_id, $plugin_definition, $module_handler, $string_translation);
}