function LanguageNegotiatorInterface::getNegotiationMethodInstance
Same name in other branches
- 8.9.x core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getNegotiationMethodInstance()
- 10 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getNegotiationMethodInstance()
- 11.x core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getNegotiationMethodInstance()
Returns an instance of the specified language negotiation method.
Parameters
string $method_id: The method identifier.
Return value
\Drupal\language\LanguageNegotiationMethodInterface
1 method overrides LanguageNegotiatorInterface::getNegotiationMethodInstance()
- LanguageNegotiator::getNegotiationMethodInstance in core/
modules/ language/ src/ LanguageNegotiator.php - Returns an instance of the specified language negotiation method.
File
-
core/
modules/ language/ src/ LanguageNegotiatorInterface.php, line 152
Class
- LanguageNegotiatorInterface
- Common interface for language negotiation services.
Namespace
Drupal\languageCode
public function getNegotiationMethodInstance($method_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.