You are here

public function SchemaPluginBase::hasSubscriptions in GraphQL 8.3

Checks if the schema has any subscriptions.

Return value

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

Overrides SchemaBuilderInterface::hasSubscriptions

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

File

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

Class

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

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