public function BooleanOperator::init in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\filter\FilterPluginBase::init().
Overrides FilterPluginBase::init
1 call to BooleanOperator::init()
- Current::init in lib/
Views/ user/ Plugin/ views/ filter/ Current.php - Overrides Drupal\views\Plugin\views\filter\BooleanOperator::init().
1 method overrides BooleanOperator::init()
- Current::init in lib/
Views/ user/ Plugin/ views/ filter/ Current.php - Overrides Drupal\views\Plugin\views\filter\BooleanOperator::init().
File
- lib/
Drupal/ views/ Plugin/ views/ filter/ BooleanOperator.php, line 45 - Definition of Drupal\views\Plugin\views\filter\BooleanOperator.
Class
- BooleanOperator
- Simple filter to handle matching of boolean values
Namespace
Drupal\views\Plugin\views\filterCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
$this->value_value = t('True');
if (isset($this->definition['label'])) {
$this->value_value = $this->definition['label'];
}
if (isset($this->definition['accept null'])) {
$this->accept_null = (bool) $this->definition['accept null'];
}
elseif (isset($this->definition['accept_null'])) {
$this->accept_null = (bool) $this->definition['accept_null'];
}
$this->value_options = NULL;
}