class LanguageNegotiationTestTs in Drupal 10
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
- 9 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';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LanguageNegotiationMethodBase:: |
protected | property | The configuration factory. | |
LanguageNegotiationMethodBase:: |
protected | property | The current active user. | |
LanguageNegotiationMethodBase:: |
protected | property | The language manager. | |
LanguageNegotiationMethodBase:: |
public | function | ||
LanguageNegotiationMethodBase:: |
public | function | ||
LanguageNegotiationMethodBase:: |
public | function | ||
LanguageNegotiationMethodBase:: |
public | function | ||
LanguageNegotiationTest:: |
public | function |
Performs language negotiation. Overrides LanguageNegotiationMethodInterface:: |
|
LanguageNegotiationTestTs:: |
constant |
The language negotiation method id. Overrides LanguageNegotiationTest:: |