public function Type::resolve in GraphQL 8.4
Resolves the "type" property.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $entity_definition_field: The entity field definition.
Return value
string The field type.
File
- src/
Plugin/ GraphQL/ DataProducer/ EntityDefinition/ Fields/ Type.php, line 36
Class
- Type
- Retrieves the "type" property from a given field definition.
Namespace
Drupal\graphql\Plugin\GraphQL\DataProducer\EntityDefinition\FieldsCode
public function resolve(FieldDefinitionInterface $entity_definition_field) : string {
return $entity_definition_field
->getType();
}