1 | <?php |
||
21 | class LanguageNegotiationGraphQL extends LanguageNegotiationMethodBase implements ContainerFactoryPluginInterface { |
||
22 | |||
23 | /** |
||
24 | * The graphql language context. |
||
25 | * |
||
26 | * @var \Drupal\graphql\GraphQLLanguageContext |
||
27 | */ |
||
28 | protected $languageContext; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public static function create( |
||
41 | |||
42 | /** |
||
43 | * LanguageNegotiationGraphQL constructor. |
||
44 | * |
||
45 | * @param \Drupal\graphql\GraphQLLanguageContext $languageContext |
||
46 | * Instance of the GraphQL language context. |
||
47 | */ |
||
48 | public function __construct(GraphQLLanguageContext $languageContext) { |
||
51 | |||
52 | /** |
||
53 | * The language negotiation method id. |
||
54 | */ |
||
55 | const METHOD_ID = 'language-graphql'; |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public function getLangcode(Request $request = NULL) { |
||
63 | |||
64 | } |
||
65 |