You are here

public function DsDevelLocalTask::__construct in Display Suite 8.2

Same name and namespace in other branches
  1. 8.4 modules/ds_devel/src/Plugin/Derivative/DsDevelLocalTask.php \Drupal\ds_devel\Plugin\Derivative\DsDevelLocalTask::__construct()
  2. 8.3 modules/ds_devel/src/Plugin/Derivative/DsDevelLocalTask.php \Drupal\ds_devel\Plugin\Derivative\DsDevelLocalTask::__construct()

Creates an DevelLocalTask object.

Parameters

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

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

File

modules/ds_devel/src/Plugin/Derivative/DsDevelLocalTask.php, line 34

Class

DsDevelLocalTask
Provides local task definitions for all entity bundles.

Namespace

Drupal\ds_devel\Plugin\Derivative

Code

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