You are here

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\Execution

Code

public function getFieldName() {
  return $this->info->fieldName;
}