protected function ArgumentAwarePluginTrait::buildArgumentDescription in GraphQL 8.3
Builds an argument's description.
Parameters
mixed $argument: The argument definition.
array $definition: The plugin definition array.
Return value
string The description of the argument.
1 call to ArgumentAwarePluginTrait::buildArgumentDescription()
- ArgumentAwarePluginTrait::buildArguments in src/
Plugin/ GraphQL/ Traits/ ArgumentAwarePluginTrait.php - Builds the list of arguments.
File
- src/
Plugin/ GraphQL/ Traits/ ArgumentAwarePluginTrait.php, line 54
Class
Namespace
Drupal\graphql\Plugin\GraphQL\TraitsCode
protected function buildArgumentDescription($argument, $definition) {
return (string) (isset($argument['description']) ? $argument['description'] : '');
}