LanguageNegotiationTestTs.php

Same filename in other branches
  1. 8.9.x core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php
  2. 10 core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php
  3. 11.x core/modules/language/tests/language_test/src/Plugin/LanguageNegotiation/LanguageNegotiationTestTs.php

Namespace

Drupal\language_test\Plugin\LanguageNegotiation

File

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

View source
<?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';

}

Classes

Title Deprecated Summary
LanguageNegotiationTestTs Class for identifying language from a selected language.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.