trait DeprecatablePluginTrait in GraphQL 8.3
Hierarchy
- trait \Drupal\graphql\Plugin\GraphQL\Traits\DeprecatablePluginTrait
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\TraitsView source
trait DeprecatablePluginTrait {
/**
* @param $definition
*
* @return null
*/
protected function buildDeprecationReason($definition) {
return !empty($definition['deprecated']) ? $definition['deprecated'] : NULL;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeprecatablePluginTrait:: |
protected | function |