public function UserLocalTask::__construct in Drupal 10
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\DerivativeCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
$this->entityTypeManager = $entity_type_manager;
$this->stringTranslation = $string_translation;
}