protected LanguageNegotiator::getEnabledNegotiators($type)
Gets enabled detection methods for the provided language type.
Parameters
string $type: The language type.
Return value
array An array of enabled detection methods for the provided language type.
File
- core/modules/language/src/LanguageNegotiator.php, line 165
Class
- LanguageNegotiator
- Class responsible for performing language negotiation.
Namespace
Drupal\language
Code
protected function getEnabledNegotiators($type) { return $this->configFactory->get('language.types')->get('negotiation.' . $type . '.enabled') ? : array(); }
Please login to continue.