You are here

protected function LanguageTestBase::viewsData in Zircon Profile 8

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

Returns the views data definition.

Overrides ViewKernelTestBase::viewsData

File

core/modules/language/src/Tests/Views/LanguageTestBase.php, line 51
Contains \Drupal\language\Tests\Views\LanguageTestBase.

Class

LanguageTestBase
Defines the base class for all Language handler tests.

Namespace

Drupal\language\Tests\Views

Code

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