Version 1
[yaffs-website] / web / core / modules / language / tests / language_test / src / Plugin / LanguageNegotiation / LanguageNegotiationTestTs.php
diff --git a/web/core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php b/web/core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php
new file mode 100644 (file)
index 0000000..1f730cf
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+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';
+
+}