public function Subquery::__construct

Constructs a Subquery object.

Overrides JoinPluginBase::__construct

File

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

Class

Subquery
Join handler for relationships that join with a subquery as the left field. eg: LEFT JOIN node node_term_data ON ([YOUR SUBQUERY HERE]) = node_term_data.nid

Namespace

Drupal\views\Plugin\views\join

Code

public function __construct(array $configuration, $plugin_id, DiscoveryInterface $discovery) {
  parent::__construct($configuration, $plugin_id, $discovery);
  $this->left_query = $this->configuration['left_query'];
}