function JoinPluginBase::__construct
Same name in other branches
- 9 core/modules/views/src/Plugin/views/join/JoinPluginBase.php \Drupal\views\Plugin\views\join\JoinPluginBase::__construct()
- 8.9.x core/modules/views/src/Plugin/views/join/JoinPluginBase.php \Drupal\views\Plugin\views\join\JoinPluginBase::__construct()
- 11.x 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.
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 255
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 += [
'type' => 'LEFT',
'extra_operator' => 'AND',
'operator' => '=',
];
$this->configuration = $configuration;
if (!empty($configuration['table'])) {
$this->table = $configuration['table'];
}
$this->leftTable = $configuration['left_table'];
if (!empty($configuration['left_field'])) {
$this->leftField = $configuration['left_field'];
}
$this->field = $configuration['field'];
if (!empty($configuration['left_formula'])) {
$this->leftFormula = $configuration['left_formula'];
}
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'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.