You are here

class LanguageNegotiationTestTs in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php \Drupal\language_test\Plugin\LanguageNegotiation\LanguageNegotiationTestTs
  2. 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

Expanded class hierarchy of LanguageNegotiationTestTs

File

core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php, line 16

Namespace

Drupal\language_test\Plugin\LanguageNegotiation
View source
class LanguageNegotiationTestTs extends LanguageNegotiationTest {

  /**
   * The language negotiation method id.
   */
  const METHOD_ID = 'test_language_negotiation_method_ts';

}

Members