Same filename in this branch
- 8.9.x core/modules/language/tests/src/Unit/process/LanguageNegotiationTest.php
- 8.9.x core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php
Same filename and directory in other branches
- 10 core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php
- 9 core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php
Namespace
Drupal\language_test\Plugin\LanguageNegotiation
File
core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTest.php
View source
<?php
namespace Drupal\language_test\Plugin\LanguageNegotiation;
use Drupal\language\LanguageNegotiationMethodBase;
use Symfony\Component\HttpFoundation\Request;
class LanguageNegotiationTest extends LanguageNegotiationMethodBase {
const METHOD_ID = 'test_language_negotiation_method';
public function getLangcode(Request $request = NULL) {
return 'it';
}
}
Classes