protected function SchemaProvider::getSortedProviders in GraphQL 8
Same name and namespace in other branches
- 8.2 src/SchemaProvider.php \Drupal\graphql\SchemaProvider::getSortedProviders()
Returns the sorted array of schema providers.
Return value
\Drupal\graphql\SchemaProviderInterface[] An array of schema provider objects.
2 calls to SchemaProvider::getSortedProviders()
File
- src/
SchemaProvider.php, line 60
Class
- SchemaProvider
- Generates a GraphQL Schema.
Namespace
Drupal\graphqlCode
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;
}