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

1
public function getLangcode(Request $request = NULL);
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.