You are here

protected function LanguageTestBase::viewsData in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::viewsData()

Returns the views data definition.

Overrides ViewsKernelTestBase::viewsData

File

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

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;
}