You are here

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

InputTypePluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\InputTypes

Code

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