public function LanguageNegotiatorInterface::getNegotiationMethodInstance in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::getNegotiationMethodInstance()
- 9 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
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);