function LanguageTestBase::viewsData

Same name in other branches
  1. 9 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::viewsData()
  2. 8.9.x core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::viewsData()
  3. 11.x core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::viewsData()

Overrides ViewsKernelTestBase::viewsData

File

core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php, line 49

Class

LanguageTestBase
Defines the base class for all Language handler tests.

Namespace

Drupal\Tests\language\Kernel\Views

Code

protected function viewsData() {
    $data = parent::viewsData();
    $data['views_test_data']['langcode'] = [
        'title' => t('Langcode'),
        'help' => t('Langcode'),
        'field' => [
            'id' => 'language',
        ],
        'argument' => [
            'id' => 'language',
        ],
        'filter' => [
            'id' => 'language',
        ],
    ];
    return $data;
}

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