Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL)
 {
     parent::init($view, $display, $options);
     if (!empty($this->definition['formula'])) {
         $this->formula = $this->definition['formula'];
     }
 }
Esempio n. 2
0
 /**
  * Overrides \Drupal\views\Plugin\views\argument\ArgumentPluginBase::init().
  */
 public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL)
 {
     parent::init($view, $display, $options);
     $this->helper = new ManyToOneHelper($this);
     // Ensure defaults for these, during summaries and stuff:
     $this->operator = 'or';
     $this->value = array();
 }
Esempio n. 3
0
 /**
  * {@inheritdoc}
  */
 public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL)
 {
     parent::init($view, $display, $options);
     $this->searchType = $this->definition['search_type'];
 }