Same name in other branches
  1. 8.x-1.x src/Plugin/Derivative/DynamicLocalTasks.php \Drupal\entity_clone\Plugin\Derivative\DynamicLocalTasks::__construct()

Constructs a new DynamicLocalTasks.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\StringTranslation\TranslationManager $string_translation: The translation manager.

File

src/Plugin/Derivative/DynamicLocalTasks.php, line 38

Class

DynamicLocalTasks
Defines dynamic local tasks.

Namespace

Drupal\entity_clone\Plugin\Derivative

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationManager $string_translation) {
    $this->entityTypeManager = $entity_type_manager;
    $this->translationManager = $string_translation;
}