You are here

protected function QueryProvider::getSortedProviders in GraphQL 8.3

Returns the sorted array of query providers.

Return value

\Drupal\graphql\GraphQL\QueryProvider\QueryProviderInterface[] An array of query provider objects.

1 call to QueryProvider::getSortedProviders()
QueryProvider::getQuery in src/GraphQL/QueryProvider/QueryProvider.php
Returns a query string given the query parameters.

File

src/GraphQL/QueryProvider/QueryProvider.php, line 55

Class

QueryProvider

Namespace

Drupal\graphql\GraphQL\QueryProvider

Code

protected function getSortedProviders() {
  if (!isset($this->sortedProviders)) {
    krsort($this->providers);
    $this->sortedProviders = [];
    foreach ($this->providers as $providers) {
      $this->sortedProviders = array_merge($this->sortedProviders, $providers);
    }
  }
  return $this->sortedProviders;
}