You are here

trait DeprecatablePluginTrait in GraphQL 8.3

Hierarchy

3 files declare their use of DeprecatablePluginTrait
FieldPluginBase.php in src/Plugin/GraphQL/Fields/FieldPluginBase.php
MutationPluginBase.php in src/Plugin/GraphQL/Mutations/MutationPluginBase.php
SubscriptionPluginBase.php in src/Plugin/GraphQL/Subscriptions/SubscriptionPluginBase.php

File

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

Namespace

Drupal\graphql\Plugin\GraphQL\Traits
View source
trait DeprecatablePluginTrait {

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

}

Members