protected function LanguageTestBase::viewsData in Drupal 8
Same name and namespace in other branches
- 9 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\ViewsCode
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;
}