function LanguageNegotiatorInterface::getPrimaryNegotiationMethod
Same name in other branches
- 9 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getPrimaryNegotiationMethod()
- 8.9.x core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getPrimaryNegotiationMethod()
- 10 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getPrimaryNegotiationMethod()
Returns the ID of the language type's primary language negotiation method.
Parameters
string $type: The language type.
Return value
string The identifier of the primary language negotiation method for the given language type, or the default method if none exists.
File
-
core/
modules/ language/ src/ LanguageNegotiatorInterface.php, line 164
Class
- LanguageNegotiatorInterface
- Common interface for language negotiation services.
Namespace
Drupal\languageCode
public function getPrimaryNegotiationMethod($type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.