public function ScheduledTransitionsLocalTask::__construct in Scheduled Transitions 8
Same name and namespace in other branches
- 2.x src/Plugin/Menu/LocalTask/ScheduledTransitionsLocalTask.php \Drupal\scheduled_transitions\Plugin\Menu\LocalTask\ScheduledTransitionsLocalTask::__construct()
Constructs a new ScheduledTransitionsLocalTask.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The current route match.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.
\Drupal\Core\StringTranslation\TranslationInterface $stringTranslation: The string translation service.
Overrides PluginBase::__construct
File
- src/
Plugin/ Menu/ LocalTask/ ScheduledTransitionsLocalTask.php, line 73
Class
- ScheduledTransitionsLocalTask
- Provides a local task showing count of scheduled transitions for an entity.
Namespace
Drupal\scheduled_transitions\Plugin\Menu\LocalTaskCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, RouteMatchInterface $routeMatch, EntityTypeManagerInterface $entityTypeManager, LanguageManagerInterface $languageManager, TranslationInterface $stringTranslation) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->routeMatch = $routeMatch;
$this->entityTypeManager = $entityTypeManager;
$this->languageManager = $languageManager;
$this->stringTranslation = $stringTranslation;
}