You are here

protected function FixedLanguageNegotiator::getEnabledNegotiators in GraphQL 8.3

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/FixedLanguageNegotiator.php, line 19

Class

FixedLanguageNegotiator
Fixed language negotiator.

Namespace

Drupal\graphql

Code

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