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

Breadcrumb

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

function LanguageNegotiationMethodInterface::setCurrentUser

Injects the current user.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current active user.

1 method overrides LanguageNegotiationMethodInterface::setCurrentUser()
LanguageNegotiationMethodBase::setCurrentUser in core/modules/language/src/LanguageNegotiationMethodBase.php
Injects the current user.

File

core/modules/language/src/LanguageNegotiationMethodInterface.php, line 38

Class

LanguageNegotiationMethodInterface
Interface for language negotiation classes.

Namespace

Drupal\language

Code

public function setCurrentUser(AccountInterface $current_user);

API Navigation

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