protected function LanguageTestBase::schemaDefinition 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::schemaDefinition()
- 10 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::schemaDefinition()
Returns the schema definition.
@internal
Overrides ViewsKernelTestBase::schemaDefinition
File
- core/
modules/ language/ tests/ src/ Kernel/ Views/ LanguageTestBase.php, line 31
Class
- LanguageTestBase
- Defines the base class for all Language handler tests.
Namespace
Drupal\Tests\language\Kernel\ViewsCode
protected function schemaDefinition() {
$schema = parent::schemaDefinition();
$schema['views_test_data']['fields']['langcode'] = [
'description' => 'The {language}.langcode of this beatle.',
'type' => 'varchar',
'length' => 12,
'default' => '',
];
return $schema;
}