public function JoinPluginBase::__construct

Constructs a Drupal\views\Plugin\views\join\JoinPluginBase object.

Overrides PluginBase::__construct

1 call to JoinPluginBase::__construct()
Subquery::__construct in drupal/core/modules/views/lib/Drupal/views/Plugin/views/join/Subquery.php
Constructs a Subquery object.
1 method overrides JoinPluginBase::__construct()
Subquery::__construct in drupal/core/modules/views/lib/Drupal/views/Plugin/views/join/Subquery.php
Constructs a Subquery object.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/join/JoinPluginBase.php, line 145
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 function __construct(array $configuration, $plugin_id, array $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);

  // Merge in some default values.
  $configuration += array(
    'type' => 'LEFT',
    'extra_operator' => 'AND',
  );
  $this->configuration = $configuration;
  if (!empty($configuration['table'])) {
    $this->table = $configuration['table'];
  }
  $this->leftTable = $configuration['left_table'];
  $this->leftField = $configuration['left_field'];
  $this->field = $configuration['field'];
  if (!empty($configuration['extra'])) {
    $this->extra = $configuration['extra'];
  }
  if (isset($configuration['adjusted'])) {
    $this->adjusted = $configuration['adjusted'];
  }
  $this->extraOperator = strtoupper($configuration['extra_operator']);
  $this->type = $configuration['type'];
}