You are here

public function FieldContext::getContextLanguage in GraphQL 8.4

Returns the language set as context.

Return value

string

File

src/GraphQL/Execution/FieldContext.php, line 55

Class

FieldContext
Context that is passed to data producer plugins.

Namespace

Drupal\graphql\GraphQL\Execution

Code

public function getContextLanguage() {
  return $this->context
    ->getContextLanguage();
}