public function SubscriptionPluginBase::getDefinition in GraphQL 8.3
Returns the plugin's type or field definition for the schema.
Return value
array The type or field definition of the plugin.
Overrides SubscriptionPluginInterface::getDefinition
File
- src/
Plugin/ GraphQL/ Subscriptions/ SubscriptionPluginBase.php, line 39
Class
Namespace
Drupal\graphql\Plugin\GraphQL\SubscriptionsCode
public function getDefinition() {
$definition = $this
->getPluginDefinition();
return [
'type' => $this
->buildType($definition),
'description' => $this
->buildDescription($definition),
'args' => $this
->buildArguments($definition),
'deprecationReason' => $this
->buildDeprecationReason($definition),
];
}