function UserLocalTask::__construct

Same name in other branches
  1. 9 core/modules/user/src/Plugin/Derivative/UserLocalTask.php \Drupal\user\Plugin\Derivative\UserLocalTask::__construct()
  2. 11.x core/modules/user/src/Plugin/Derivative/UserLocalTask.php \Drupal\user\Plugin\Derivative\UserLocalTask::__construct()

Creates a UserLocalTask object.

Parameters

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

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

File

core/modules/user/src/Plugin/Derivative/UserLocalTask.php, line 33

Class

UserLocalTask
Provides local task definitions for all entity bundles.

Namespace

Drupal\user\Plugin\Derivative

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.