function LanguageNegotiationUrlTest::providerNeutralLanguages

Same name in other branches
  1. 10 core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php \Drupal\Tests\language\Unit\LanguageNegotiationUrlTest::providerNeutralLanguages()

Provides data for the neutral language test.

Return value

array An array of data for checking path prefix negotiation for neutral languages.

File

core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php, line 217

Class

LanguageNegotiationUrlTest
@coversDefaultClass \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationUrl @group language

Namespace

Drupal\Tests\language\Unit

Code

public static function providerNeutralLanguages() {
    return [
        [
            LanguageInterface::LANGCODE_NOT_APPLICABLE,
            NULL,
        ],
        [
            LanguageInterface::LANGCODE_NOT_SPECIFIED,
            'en',
        ],
    ];
}

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