You are here

public function WorkflowLocalTask::__construct in Workflow 8

Creates an WorkflowLocalTask 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/WorkflowLocalTask.php, line 36

Class

WorkflowLocalTask
Provides local task definitions for all entity bundles.

Namespace

Drupal\workflow\Plugin\Derivative

Code

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