public static function LoginLogoutMenuLink::create in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/Plugin/Menu/LoginLogoutMenuLink.php \Drupal\user\Plugin\Menu\LoginLogoutMenuLink::create()
- 9 core/modules/user/src/Plugin/Menu/LoginLogoutMenuLink.php \Drupal\user\Plugin\Menu\LoginLogoutMenuLink::create()
File
- core/
modules/ user/ src/ Plugin/ Menu/ LoginLogoutMenuLink.php, line 45
Class
- LoginLogoutMenuLink
- A menu link that shows "Log in" or "Log out" as appropriate.
Namespace
Drupal\user\Plugin\MenuCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container
->get('menu_link.static.overrides'), $container
->get('current_user'));
}