function JoinTest::buildJoin

Same name 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()
  2. 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()
  3. 10 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 44

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.