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

Breadcrumb

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

function LanguageNegotiationSession::__construct

Constructs a LanguageNegotiationSession object.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationSession.php, line 69

Class

LanguageNegotiationSession
Identify language from a request/session parameter.

Namespace

Drupal\language\Plugin\LanguageNegotiation

Code

public function __construct(RequestStack $request_stack) {
    $this->requestStack = $request_stack;
}

API Navigation

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