public function JoinPluginBase::__construct in Drupal 8
Same name and namespace in other branches
- 9 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 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',
];
$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['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'];
}