function AreaEmptyTest::viewsData

Same name in other branches
  1. 9 core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php \Drupal\Tests\views\Kernel\Handler\AreaEmptyTest::viewsData()
  2. 8.9.x core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php \Drupal\Tests\views\Kernel\Handler\AreaEmptyTest::viewsData()
  3. 10 core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php \Drupal\Tests\views\Kernel\Handler\AreaEmptyTest::viewsData()

Overrides ViewsKernelTestBase::viewsData

File

core/modules/views/tests/src/Kernel/Handler/AreaEmptyTest.php, line 34

Class

AreaEmptyTest
Tests the generic entity area handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

protected function viewsData() {
    $data = parent::viewsData();
    $data['views']['test_example'] = [
        'title' => 'Test Example area',
        'help' => 'A area handler which just exists for tests.',
        'area' => [
            'id' => 'test_example',
        ],
    ];
    return $data;
}

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