public function FieldContext::setContextLanguage in GraphQL 8.4
Sets the context language.
Parameters
string $language:
Return value
$this
File
- src/
GraphQL/ Execution/ FieldContext.php, line 66
Class
- FieldContext
- Context that is passed to data producer plugins.
Namespace
Drupal\graphql\GraphQL\ExecutionCode
public function setContextLanguage($language) {
$this->context
->setContextLanguage($language);
return $this;
}