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