/** * Overrides \Drupal\views\Plugin\views\filter\FilterPluginBase::init(). */ 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']; } 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; }
/** * {@inheritdoc} */ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) { parent::init($view, $display, $options); $this->searchType = $this->definition['search_type']; }
/** * {@inheritdoc} */ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) { parent::init($view, $display, $options); $this->valueTitle = $this->t('Options'); $this->valueOptions = NULL; }