You are here

public function LanguageNegotiationGraphQL::__construct in GraphQL 8.3

LanguageNegotiationGraphQL constructor.

Parameters

\Drupal\graphql\GraphQLLanguageContext $languageContext: Instance of the GraphQL language context.

File

src/Plugin/LanguageNegotiation/LanguageNegotiationGraphQL.php, line 48

Class

LanguageNegotiationGraphQL
Class for identifying language from a selected language.

Namespace

Drupal\graphql\Plugin\LanguageNegotiation

Code

public function __construct(GraphQLLanguageContext $languageContext) {
  $this->languageContext = $languageContext;
}