LanguageNegotiationMethodInterface::getLangcode

public LanguageNegotiationMethodInterface::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.

Return value

string A valid language code or FALSE if the negotiation was unsuccessful.

File

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

Class

LanguageNegotiationMethodInterface
Interface for language negotiation classes.

Namespace

Drupal\language

Code

public function getLangcode(Request $request = NULL);
doc_Drupal
2016-10-29 09:22:47
Comments
Leave a Comment

Please login to continue.