You are here

public function SchemaPluginBase::hasMutations in GraphQL 8.3

Checks if the schema has any mutations.

Return value

bool TRUE if the schema has any mutations, FALSE otherwise.

Overrides SchemaBuilderInterface::hasMutations

1 call to SchemaPluginBase::hasMutations()
SchemaPluginBase::getSchema in src/Plugin/GraphQL/Schemas/SchemaPluginBase.php
Retrieves the schema.

File

src/Plugin/GraphQL/Schemas/SchemaPluginBase.php, line 318

Class

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

public function hasMutations() {
  return !empty($this->pluginDefinition['mutation_map']);
}