function Formula::init

Same name and namespace in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/argument/Formula.php \Drupal\views\Plugin\views\argument\Formula::init()
  2. 10 core/modules/views/src/Plugin/views/argument/Formula.php \Drupal\views\Plugin\views\argument\Formula::init()
  3. 11.x core/modules/views/src/Plugin/views/argument/Formula.php \Drupal\views\Plugin\views\argument\Formula::init()

Overrides ArgumentPluginBase::init

File

core/modules/views/src/Plugin/views/argument/Formula.php, line 27

Class

Formula
Argument handler for simple formulae.

Namespace

Drupal\views\Plugin\views\argument

Code

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'];
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.