Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. JoinPluginBase.php

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.
  • left_field(optional): Field or formula. In formulas we can reference the left 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

core/modules/views/src/Plugin/views/join/JoinPluginBase.php, line 210

Class

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

Namespace

Drupal\views\Plugin\views\join

Code

public $extra;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal