public function DynamicLocalTasks::__construct in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\workbench_moderation\Plugin\Derivative\DynamicLocalTasks::__construct()
Creates an FieldUiLocalTask object.
Parameters
string $base_plugin_id: The base plugin ID.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.
File
- src/
Plugin/ Derivative/ DynamicLocalTasks.php, line 46
Class
- DynamicLocalTasks
- Generates moderation-related local tasks.
Namespace
Drupal\workbench_moderation\Plugin\DerivativeCode
public function __construct($base_plugin_id, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
$this->entityTypeManager = $entity_type_manager;
$this->stringTranslation = $string_translation;
$this->basePluginId = $base_plugin_id;
}