function LanguageTest::providerGetConfig

Same name and namespace in other branches
  1. 8.9.x core/modules/ckeditor/tests/src/Unit/Plugin/CKEditorPlugin/LanguageTest.php \Drupal\Tests\ckeditor\Unit\Plugin\CKEditorPlugin\LanguageTest::providerGetConfig()

Provides a list of configs to test.

File

core/modules/ckeditor/tests/src/Unit/Plugin/CKEditorPlugin/LanguageTest.php, line 34

Class

LanguageTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21ckeditor%21src%21Plugin%21CKEditorPlugin%21Language.php/class/Language/9" title="Defines the &quot;language&quot; plugin." class="local">\Drupal\ckeditor\Plugin\CKEditorPlugin\Language</a>

Namespace

Drupal\Tests\ckeditor\Unit\Plugin\CKEditorPlugin

Code

public function providerGetConfig() {
    return [
        [
            'un',
            LanguageManager::getUnitedNationsLanguageList(),
        ],
        [
            'all',
            LanguageManager::getStandardLanguageList(),
        ],
    ];
}

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