public function Formula::init in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/argument/Formula.php \Drupal\views\Plugin\views\argument\Formula::init()
- 9 core/modules/views/src/Plugin/views/argument/Formula.php \Drupal\views\Plugin\views\argument\Formula::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\argumentCode
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'];
}
}