You are here

protected function DeprecatablePluginTrait::buildDeprecationReason in GraphQL 8.3

Parameters

$definition:

Return value

null

3 calls to DeprecatablePluginTrait::buildDeprecationReason()
FieldPluginBase::getDefinition in src/Plugin/GraphQL/Fields/FieldPluginBase.php
Returns the plugin's type or field definition for the schema.
MutationPluginBase::getDefinition in src/Plugin/GraphQL/Mutations/MutationPluginBase.php
Returns the plugin's type or field definition for the schema.
SubscriptionPluginBase::getDefinition in src/Plugin/GraphQL/Subscriptions/SubscriptionPluginBase.php
Returns the plugin's type or field definition for the schema.

File

src/Plugin/GraphQL/Traits/DeprecatablePluginTrait.php, line 12

Class

DeprecatablePluginTrait

Namespace

Drupal\graphql\Plugin\GraphQL\Traits

Code

protected function buildDeprecationReason($definition) {
  return !empty($definition['deprecated']) ? $definition['deprecated'] : NULL;
}