Same name and namespace in other branches
  1. 8.9.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php \Drupal\views_test_data\Plugin\views\join\JoinTest::buildJoin()
  2. 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

Namespace

Drupal\views_test_data\Plugin\views\join

Code

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);
}