protected function InputTypePluginBase::buildFieldDescription in GraphQL 8.3
Builds a field's description.
Parameters
array $field: The field definition array.
array $definition: The plugin definition array.
Return value
string The field's description.
1 call to InputTypePluginBase::buildFieldDescription()
- InputTypePluginBase::buildFields in src/
Plugin/ GraphQL/ InputTypes/ InputTypePluginBase.php - Builds the fields of the type definition.
File
- src/
Plugin/ GraphQL/ InputTypes/ InputTypePluginBase.php, line 92
Class
Namespace
Drupal\graphql\Plugin\GraphQL\InputTypesCode
protected function buildFieldDescription($field, $definition) {
return (string) (isset($field['description']) ? $field['description'] : '');
}