Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserLocalTask.php

function UserLocalTask::create

Overrides ContainerDeriverInterface::create

File

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

Class

UserLocalTask
Provides local task definitions for all entity bundles.

Namespace

Drupal\user\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
    return new static($container->get('entity_type.manager'), $container->get('string_translation'));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal