public function ConfigurableLanguageManagerInterface::getNegotiatedLanguageMethod in Drupal 9
Same name and namespace in other branches
- 8 core/modules/language/src/ConfigurableLanguageManagerInterface.php \Drupal\language\ConfigurableLanguageManagerInterface::getNegotiatedLanguageMethod()
Gets the negotiated language method ID.
Parameters
string $type: (optional) The language type; e.g., the interface or the content language.
Return value
string The negotiated language method ID.
1 method overrides ConfigurableLanguageManagerInterface::getNegotiatedLanguageMethod()
- ConfigurableLanguageManager::getNegotiatedLanguageMethod in core/
modules/ language/ src/ ConfigurableLanguageManager.php - Gets the negotiated language method ID.
File
- core/
modules/ language/ src/ ConfigurableLanguageManagerInterface.php, line 104
Class
- ConfigurableLanguageManagerInterface
- Common interface for language negotiation services.
Namespace
Drupal\languageCode
public function getNegotiatedLanguageMethod($type = LanguageInterface::TYPE_INTERFACE);