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);
Please login to continue.