Drupal 8  8.0.2
LanguageNegotiationUI Class Reference
Inheritance diagram for LanguageNegotiationUI:

Public Member Functions

 getLangcode (Request $request=NULL)
 
- Public Member Functions inherited from LanguageNegotiationMethodBase
 setLanguageManager (ConfigurableLanguageManagerInterface $language_manager)
 
 setConfig (ConfigFactoryInterface $config)
 
 setCurrentUser (AccountInterface $current_user)
 
 persist (LanguageInterface $language)
 

Data Fields

const METHOD_ID = 'language-interface'
 

Additional Inherited Members

- Protected Attributes inherited from LanguageNegotiationMethodBase
 $languageManager
 
 $config
 
 $currentUser
 

Detailed Description

Identifies the language from the interface text language selected for page.

( id = Drupal::METHOD_ID, types = {Drupal::TYPE_CONTENT}, weight = 9, name = ("Interface"), description = ("Use the detected interface language.") )

Member Function Documentation

getLangcode ( Request  $request = NULL)

{Performs language negotiation.

Parameters
\Symfony\Component\HttpFoundation\Request$request(optional) The current request. Defaults to NULL if it has not been initialized yet.
Returns
string A valid language code or FALSE if the negotiation was unsuccessful.
}

Implements LanguageNegotiationMethodInterface.

References Drupal\languageManager().

Here is the call graph for this function:

Field Documentation


The documentation for this class was generated from the following file: