You are here

public function GroupByNumeric::init in Drupal 9

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

Initialize the plugin.

Parameters

\Drupal\views\ViewExecutable $view: The view object.

\Drupal\views\Plugin\views\display\DisplayPluginBase $display: The display handler.

array $options: The options configured for this plugin.

Overrides HandlerBase::init

File

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

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);
}