JoinPluginInterface.php

Same filename and directory in other branches
  1. 9 core/modules/views/src/Plugin/views/join/JoinPluginInterface.php
  2. 8.9.x core/modules/views/src/Plugin/views/join/JoinPluginInterface.php
  3. 10 core/modules/views/src/Plugin/views/join/JoinPluginInterface.php

Namespace

Drupal\views\Plugin\views\join

File

core/modules/views/src/Plugin/views/join/JoinPluginInterface.php

View source
<?php

namespace Drupal\views\Plugin\views\join;


/**
 * Represents a join and creates the SQL necessary to implement the join.
 *
 * Extensions of this class can be used to create more interesting joins.
 */
interface JoinPluginInterface {
    
    /**
     * Builds the SQL for the join this object represents.
     *
     * When possible, try to use table alias instead of table names.
     *
     * @param $select_query
     *   A select query object.
     * @param $table
     *   The base table to join.
     * @param \Drupal\views\Plugin\views\query\QueryPluginBase $view_query
     *   The source views query.
     */
    public function buildJoin($select_query, $table, $view_query);

}

Interfaces

Title Deprecated Summary
JoinPluginInterface Represents a join and creates the SQL necessary to implement the join.

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