protected function RelationshipJoinTestBase::viewsData in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Kernel/Plugin/RelationshipJoinTestBase.php \Drupal\Tests\views\Kernel\Plugin\RelationshipJoinTestBase::viewsData()
Overrides \Drupal\views\Tests\ViewTestBase::viewsData().
Adds a relationship for the uid column.
Overrides ViewsKernelTestBase::viewsData
1 call to RelationshipJoinTestBase::viewsData()
- RelationshipJoinInTest::viewsData in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ RelationshipJoinInTest.php - Adds an IN condition for the user name.
1 method overrides RelationshipJoinTestBase::viewsData()
- RelationshipJoinInTest::viewsData in core/
modules/ views/ tests/ src/ Kernel/ Plugin/ RelationshipJoinInTest.php - Adds an IN condition for the user name.
File
- core/
modules/ views/ tests/ src/ Kernel/ Plugin/ RelationshipJoinTestBase.php, line 69
Class
- RelationshipJoinTestBase
- Provides a base class for a testing a relationship.
Namespace
Drupal\Tests\views\Kernel\PluginCode
protected function viewsData() {
$data = parent::viewsData();
$data['views_test_data']['uid'] = [
'title' => t('UID'),
'help' => t('The test data UID'),
'relationship' => [
'id' => 'standard',
'base' => 'users_field_data',
'base field' => 'uid',
],
];
return $data;
}