protected LanguageNegotiator::negotiateLanguage($type, $method_id)
Performs language negotiation using the specified negotiation method.
Parameters
string $type: The language type to be initialized.
string $method_id: The string identifier of the language negotiation method to use to detect language.
Return value
\Drupal\Core\Language\LanguageInterface|null Negotiated language object for given type and method, FALSE otherwise.
File
core/modules/language/src/LanguageNegotiator.php, line 181