You are here

public function SchemaPluginBase::processSubscriptions in GraphQL 8.3

Processes a list of subscription definitions.

Parameters

array $subscriptions: An array of subscription definitions.

Return value

array The processed subscription definitions.

Overrides SchemaBuilderInterface::processSubscriptions

1 call to SchemaPluginBase::processSubscriptions()
SchemaPluginBase::getSubscriptions in src/Plugin/GraphQL/Schemas/SchemaPluginBase.php
Retrieves the subscriptions attached to the schema.

File

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

Class

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

public function processSubscriptions(array $subscriptions) {
  return array_map([
    $this,
    'buildSubscription',
  ], $subscriptions);
}