function FieldTimeIntervalTest::viewsData

Same name in other branches
  1. 9 core/modules/views/tests/src/Functional/Handler/FieldTimeIntervalTest.php \Drupal\Tests\views\Functional\Handler\FieldTimeIntervalTest::viewsData()
  2. 11.x core/modules/views/tests/src/Kernel/Handler/FieldTimeIntervalTest.php \Drupal\Tests\views\Kernel\Handler\FieldTimeIntervalTest::viewsData()

Overrides ViewsKernelTestBase::viewsData

File

core/modules/views/tests/src/Kernel/Handler/FieldTimeIntervalTest.php, line 69

Class

FieldTimeIntervalTest
Tests the time interval handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

protected function viewsData() {
    $data = parent::viewsData();
    $data['views_test_data']['age']['field']['id'] = 'time_interval';
    return $data;
}

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