public function DynamicLocalTasks::__construct in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\entity_hierarchy\Plugin\Derivative\DynamicLocalTasks::__construct()
Creates the DynamicLocalTasks 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.
\Drupal\Core\Entity\EntityFieldManagerInterface $entityFieldManager: Entity field manager.
File
- src/
Plugin/ Derivative/ DynamicLocalTasks.php, line 51
Class
- DynamicLocalTasks
- Generates children tab for relevant entities.
Namespace
Drupal\entity_hierarchy\Plugin\DerivativeCode
public function __construct($base_plugin_id, EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation, EntityFieldManagerInterface $entityFieldManager) {
$this->entityTypeManager = $entity_type_manager;
$this->stringTranslation = $string_translation;
$this->basePluginId = $base_plugin_id;
$this->entityFieldManager = $entityFieldManager;
}