You are here

public function RevisionsLocalTask::__construct in Workspace 8

Creates an RevisionsLocalTask object.

Parameters

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

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

File

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

Class

RevisionsLocalTask
Provides local task definitions for all entity bundles.

Namespace

Drupal\workspace\Plugin\Derivative

Code

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