function JoinTest::buildJoin
Same name in other branches
- 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php \Drupal\views_test_data\Plugin\views\join\JoinTest::buildJoin()
- 10 core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php \Drupal\views_test_data\Plugin\views\join\JoinTest::buildJoin()
- 11.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php \Drupal\views_test_data\Plugin\views\join\JoinTest::buildJoin()
Overrides JoinPluginBase::buildJoin
File
-
core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ join/ JoinTest.php, line 41
Class
- JoinTest
- Defines a join test plugin.
Namespace
Drupal\views_test_data\Plugin\views\joinCode
public function buildJoin($select_query, $table, $view_query) {
// Add an additional hardcoded condition to the query.
$this->extra = 'views_test_data.uid = ' . $this->getJoinValue();
parent::buildJoin($select_query, $table, $view_query);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.