You are here

public function JoinTest::buildJoin in Drupal 8

Same name and namespace in other branches
  1. 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: An 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 41

Class

JoinTest
Defines a join test plugin.

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