public function SchemaProvider::getMutationSchema in GraphQL 8
Same name and namespace in other branches
- 8.2 src/SchemaProvider.php \Drupal\graphql\SchemaProvider::getMutationSchema()
Return value
array
Overrides SchemaProviderInterface::getMutationSchema
File
- src/
SchemaProvider.php, line 35
Class
- SchemaProvider
- Generates a GraphQL Schema.
Namespace
Drupal\graphqlCode
public function getMutationSchema() {
return array_reduce($this
->getSortedProviders(), function ($carry, SchemaProviderInterface $provider) {
return array_merge($carry, $provider
->getMutationSchema() ?: []);
}, []);
}