function LanguageTestBase::dataSet
Same name in other branches
- 9 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::dataSet()
- 8.9.x core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::dataSet()
- 11.x core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::dataSet()
Overrides ViewsKernelTestBase::dataSet
File
-
core/
modules/ language/ tests/ src/ Kernel/ Views/ LanguageTestBase.php, line 71
Class
- LanguageTestBase
- Defines the base class for all Language handler tests.
Namespace
Drupal\Tests\language\Kernel\ViewsCode
protected function dataSet() {
$data = parent::dataSet();
$data[0]['langcode'] = 'en';
$data[1]['langcode'] = 'xx-lolspeak';
$data[2]['langcode'] = '';
$data[3]['langcode'] = '';
$data[4]['langcode'] = '';
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.