function LanguageNegotiationTest::getLangcode

Same name in other branches
  1. 9 core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTest::getLangcode()
  2. 8.9.x core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTest::getLangcode()
  3. 10 core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTest::getLangcode()

Overrides LanguageNegotiationMethodInterface::getLangcode

File

core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php, line 36

Class

LanguageNegotiationTest
Class for identifying language from a selected language.

Namespace

Drupal\language_test\Plugin\LanguageNegotiation

Code

public function getLangcode(?Request $request = NULL) {
    return 'it';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.