public function EmailVerification::init in User email verification 8
Overrides \Drupal\views\Plugin\views\HandlerBase::init().
Provide some extra help to get the operator/value easier to use.
This likely has to be overridden by filters which are more complex than simple operator/value.
Overrides FilterPluginBase::init
File
- src/
Plugin/ views/ filter/ EmailVerification.php, line 106
Class
- EmailVerification
- Simple filter to handle matching of boolean values
Namespace
Drupal\user_email_verification\Plugin\views\filterCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
$this->value_value = $this
->t('True');
if (isset($this->definition['label'])) {
$this->value_value = $this->definition['label'];
}
elseif (isset($this->definition['title'])) {
$this->value_value = $this->definition['title'];
}
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->valueOptions = NULL;
}