public property JoinPluginBase::$extra

An array of extra conditions on the join.

Each condition is either a string that's directly added, or an array of items:

  • table(optional): If not set, current table; if NULL, no table. If you specify a table in cached configuration, Views will try to load from an existing alias. If you use realtime joins, it works better.
  • field(optional): Field or formula. In formulas we can reference the right table by using %alias.
  • operator(optional): The operator used, Defaults to "=".
  • value: Must be set. If an array, operator will be defaulted to IN.
  • numeric: If true, the value will not be surrounded in quotes.

Type: array

See also

SelectQueryInterface::addJoin()

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/join/JoinPluginBase.php, line 100
Definition of Drupal\views\Plugin\views\join\JoinPluginBase.

Class

JoinPluginBase
Represents a join and creates the SQL necessary to implement the join.

Namespace

Drupal\views\Plugin\views\join

Code

public $extra;