You are here

public static function UserTrackerTab::create in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/tracker/src/Plugin/Menu/UserTrackerTab.php \Drupal\tracker\Plugin\Menu\UserTrackerTab::create()

File

core/modules/tracker/src/Plugin/Menu/UserTrackerTab.php, line 43

Class

UserTrackerTab
Provides route parameters needed to link to the current user tracker tab.

Namespace

Drupal\tracker\Plugin\Menu

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('current_user'));
}