DeprecatablePluginTrait.php in GraphQL 8.3
Namespace
Drupal\graphql\Plugin\GraphQL\TraitsFile
src/Plugin/GraphQL/Traits/DeprecatablePluginTrait.phpView source
<?php
namespace Drupal\graphql\Plugin\GraphQL\Traits;
trait DeprecatablePluginTrait {
/**
* @param $definition
*
* @return null
*/
protected function buildDeprecationReason($definition) {
return !empty($definition['deprecated']) ? $definition['deprecated'] : NULL;
}
}
Traits
Name | Description |
---|---|
DeprecatablePluginTrait |