public function Formula::init in Views (for Drupal 7) 8.3
Overrides Drupal\views\Plugin\views\argument\ArgumentPluginBase::init().
Overrides ArgumentPluginBase::init
File
- lib/
Drupal/ views/ Plugin/ views/ argument/ Formula.php, line 34 - Definition of Drupal\views\Plugin\views\argument\Formula.
Class
- Formula
- Abstract argument handler for simple formulae.
Namespace
Drupal\views\Plugin\views\argumentCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
if (!empty($this->definition['formula'])) {
$this->formula = $this->definition['formula'];
}
}