/**
  * 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;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL)
 {
     parent::init($view, $display, $options);
     $this->searchType = $this->definition['search_type'];
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL)
 {
     parent::init($view, $display, $options);
     $this->valueTitle = $this->t('Options');
     $this->valueOptions = NULL;
 }