class LanguageNegotiationTestTs in Drupal 9
Same name and namespace in other branches
- 8 core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTestTs
Class for identifying language from a selected language.
Plugin annotation
@LanguageNegotiation(
id = "test_language_negotiation_method_ts",
weight = -10,
name = @Translation("Type-specific test"),
description = @Translation("This is a test language negotiation method."),
types = {"test_language_type"}
)
Hierarchy
- class \Drupal\language\LanguageNegotiationMethodBase implements LanguageNegotiationMethodInterface
- class \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTest
- class \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTestTs
- class \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTest
Expanded class hierarchy of LanguageNegotiationTestTs
File
- core/
modules/ language/ tests/ language_test/ src/ Plugin/ LanguageNegotiation/ LanguageNegotiationTestTs.php, line 16
Namespace
Drupal\language_test\Plugin\LanguageNegotiationView source
class LanguageNegotiationTestTs extends LanguageNegotiationTest {
/**
* The language negotiation method id.
*/
const METHOD_ID = 'test_language_negotiation_method_ts';
}