You are here

protected function LanguageNegotiator::getEnabledNegotiators in GraphQL 8.4

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.

Overrides LanguageNegotiator::getEnabledNegotiators

File

src/Language/LanguageNegotiator.php, line 19

Class

LanguageNegotiator
Fixed language negotiator.

Namespace

Drupal\graphql\Language

Code

protected function getEnabledNegotiators($type) {
  $negotiators = parent::getEnabledNegotiators($type);
  asort($negotiators, SORT_NUMERIC);
  return $negotiators;
}