You are here

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

ArgumentAwarePluginTrait

Namespace

Drupal\graphql\Plugin\GraphQL\Traits

Code

protected function buildArgumentDescription($argument, $definition) {
  return (string) (isset($argument['description']) ? $argument['description'] : '');
}