Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
0 / 0 |
CRAP | |
100.00% |
0 / 0 |
| LanguageNegotiationTestTs | |
100.00% |
1 / 1 |
|
100.00% |
0 / 0 |
0 | |
100.00% |
0 / 0 |
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTestTs. | |
| */ | |
| namespace Drupal\language_test\Plugin\LanguageNegotiation; | |
| /** | |
| * Class for identifying language from a selected language. | |
| * | |
| * @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"} | |
| * ) | |
| */ | |
| class LanguageNegotiationTestTs extends LanguageNegotiationTest { | |
| /** | |
| * The language negotiation method id. | |
| */ | |
| const METHOD_ID = 'test_language_negotiation_method_ts'; | |
| } |