You are here

public function EntityqueueLocalTask::__construct in Entityqueue 8

Creates an EntityqueueLocalTask object.

Parameters

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

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

File

src/Plugin/Derivative/EntityqueueLocalTask.php, line 34

Class

EntityqueueLocalTask
Provides local task definitions for all entity bundles.

Namespace

Drupal\entityqueue\Plugin\Derivative

Code

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