function GroupByNumeric::init

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

Overrides HandlerBase::init

File

core/modules/views/src/Plugin/views/sort/GroupByNumeric.php, line 25

Class

GroupByNumeric
Handler for GROUP BY on simple numeric fields.

Namespace

Drupal\views\Plugin\views\sort

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, ?array &$options = NULL) {
    parent::init($view, $display, $options);
    // Initialize the original handler.
    $this->handler = Views::handlerManager('sort')->getHandler($options);
    $this->handler
        ->init($view, $display, $options);
}

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