function FieldCustomTest::viewsData
Returns the views data definition.
Overrides ViewsKernelTestBase::viewsData
File
- 
              core/modules/ views/ tests/ src/ Kernel/ Handler/ FieldCustomTest.php, line 30 
Class
- FieldCustomTest
- Tests the core Drupal\views\Plugin\views\field\Custom handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
public function viewsData() {
  $data = parent::viewsData();
  $data['views_test_data']['name']['field']['id'] = 'custom';
  return $data;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
