protected function RelationshipTest::viewsData in Views (for Drupal 7) 8.3
Overrides Drupal\views\Tests\ViewTestBase::viewsData().
Adds a relationship for the uid column.
Return value
array
Overrides ViewTestBase::viewsData
File
- lib/
Drupal/ views/ Tests/ Handler/ RelationshipTest.php, line 71 - Definition of Drupal\views\Tests\Handler\RelationshipTest.
Class
- RelationshipTest
- Tests the base relationship handler.
Namespace
Drupal\views\Tests\HandlerCode
protected function viewsData() {
$data = parent::viewsData();
$data['views_test_data']['uid'] = array(
'title' => t('UID'),
'help' => t('The test data UID'),
'relationship' => array(
'id' => 'standard',
'base' => 'users',
'base field' => 'uid',
),
);
return $data;
}