public function FieldDateTest::viewsData in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Tests/Handler/FieldDateTest.php \Drupal\views\Tests\Handler\FieldDateTest::viewsData()
Returns the views data definition.
Overrides ViewKernelTestBase::viewsData
File
- core/
modules/ views/ src/ Tests/ Handler/ FieldDateTest.php, line 45 - Contains \Drupal\views\Tests\Handler\FieldDateTest.
Class
- FieldDateTest
- Tests the core Drupal\views\Plugin\views\field\Date handler.
Namespace
Drupal\views\Tests\HandlerCode
public function viewsData() {
$data = parent::viewsData();
$data['views_test_data']['created']['field']['id'] = 'date';
$data['views_test_data']['destroyed'] = array(
'title' => 'Destroyed',
'help' => 'Date in future this will be destroyed.',
'field' => array(
'id' => 'date',
),
'argument' => array(
'id' => 'date',
),
'filter' => array(
'id' => 'date',
),
'sort' => array(
'id' => 'date',
),
);
return $data;
}