function LanguageTestBase::schemaDefinition

Same name in other branches
  1. 9 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::schemaDefinition()
  2. 8.9.x core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::schemaDefinition()
  3. 10 core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php \Drupal\Tests\language\Kernel\Views\LanguageTestBase::schemaDefinition()

Overrides ViewsKernelTestBase::schemaDefinition

File

core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php, line 34

Class

LanguageTestBase
Defines the base class for all Language handler tests.

Namespace

Drupal\Tests\language\Kernel\Views

Code

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.