public function JoinTest::buildJoin in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php \Drupal\views_test_data\Plugin\views\join\JoinTest::buildJoin()
- 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php \Drupal\views_test_data\Plugin\views\join\JoinTest::buildJoin()
Builds the SQL for the join this object represents.
When possible, try to use table alias instead of table names.
Parameters
$select_query: A select query object.
$table: The base table to join.
\Drupal\views\Plugin\views\query\QueryPluginBase $view_query: The source views query.
Overrides JoinPluginBase::buildJoin
File
- core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ join/ JoinTest.php, line 42
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);
}