LanguageNegotiator::getEnabledNegotiators

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();
}
doc_Drupal
2016-10-29 09:22:51
Comments
Leave a Comment

Please login to continue.