You are here

public function DynamicLocalTasks::__construct in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x 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\Derivative

Code

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;
}