public function FieldContext::getFieldName in GraphQL 8.4
Returns the current field name.
Return value
string
File
- src/
GraphQL/ Execution/ FieldContext.php, line 46
Class
- FieldContext
- Context that is passed to data producer plugins.
Namespace
Drupal\graphql\GraphQL\ExecutionCode
public function getFieldName() {
return $this->info->fieldName;
}