public function JoinPluginBase::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/join/JoinPluginBase.php \Drupal\views\Plugin\views\join\JoinPluginBase::__construct()
Constructs a Drupal\views\Plugin\views\join\JoinPluginBase object.
Overrides PluginBase::__construct
1 call to JoinPluginBase::__construct()
- Subquery::__construct in core/modules/ views/ src/ Plugin/ views/ join/ Subquery.php 
- Constructs a Subquery object.
1 method overrides JoinPluginBase::__construct()
- Subquery::__construct in core/modules/ views/ src/ Plugin/ views/ join/ Subquery.php 
- Constructs a Subquery object.
File
- core/modules/ views/ src/ Plugin/ views/ join/ JoinPluginBase.php, line 216 
- Contains \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\joinCode
public function __construct(array $configuration, $plugin_id, $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'];
}