function MenuUiContentTranslationTest::provideChangeContentToPseudoLanguageData

Same name in other branches
  1. 11.x core/modules/menu_ui/tests/src/Functional/MenuUiContentTranslationTest.php \Drupal\Tests\menu_ui\Functional\MenuUiContentTranslationTest::provideChangeContentToPseudoLanguageData()

Provides test data sets for testChangeContentToPseudoLanguage().

Return value

array Data sets to test keyed by data set label.

File

core/modules/menu_ui/tests/src/Functional/MenuUiContentTranslationTest.php, line 104

Class

MenuUiContentTranslationTest
Tests Menu UI and Content Translation integration for content entities.

Namespace

Drupal\Tests\menu_ui\Functional

Code

public static function provideChangeContentToPseudoLanguageData() {
    return [
        'und' => [
            'langcode' => LanguageInterface::LANGCODE_NOT_SPECIFIED,
        ],
        'zxx' => [
            'langcode' => LanguageInterface::LANGCODE_NOT_APPLICABLE,
        ],
    ];
}

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