protected function LanguageTestBase::viewsData in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::viewsData()
- 9 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::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;
}