function LanguageNegotiatorInterface::getNegotiationMethods
Same name in other branches
- 9 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getNegotiationMethods()
- 10 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getNegotiationMethods()
- 11.x core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getNegotiationMethods()
Returns the language negotiation methods enabled for a language type.
Parameters
string $type: (optional) The language type. If no type is specified all the method definitions are returned.
Return value
array[] An array of language negotiation method definitions keyed by method id.
1 method overrides LanguageNegotiatorInterface::getNegotiationMethods()
- LanguageNegotiator::getNegotiationMethods in core/
modules/ language/ src/ LanguageNegotiator.php - Returns the language negotiation methods enabled for a language type.
File
-
core/
modules/ language/ src/ LanguageNegotiatorInterface.php, line 142
Class
- LanguageNegotiatorInterface
- Common interface for language negotiation services.
Namespace
Drupal\languageCode
public function getNegotiationMethods($type = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.