You are here

service graphql.language_context in GraphQL 8.3

Class

Drupal\graphql\GraphQLLanguageContext
5 string references to graphql.language_context
FieldPluginBase::getLanguageContext in src/Plugin/GraphQL/Fields/FieldPluginBase.php
Get the language context instance.
LanguageContextTest::testLanguageContext in tests/src/Kernel/Framework/LanguageContextTest.php
Test the language context service.
LanguageContextTest::testLanguageNegotiation in tests/src/Kernel/Framework/LanguageContextTest.php
Test the language negotiation within a context.
LanguageContextTest::testNegotiatorInjection in tests/src/Kernel/Framework/LanguageContextTest.php
Test if the language negotiator is injected properly.
LanguageNegotiationGraphQL::create in src/Plugin/LanguageNegotiation/LanguageNegotiationGraphQL.php
Creates an instance of the plugin.

File

./graphql.services.yml
graphql.services.yml

View source
  1. class: Drupal\graphql\GraphQLLanguageContext
  2. arguments:
  3. - '@language_manager'
  4. - '@string_translation'