public function GroupByNumeric::init in Views (for Drupal 7) 8.3
Init the handler with necessary data.
Parameters
Drupal\views\ViewExecutable $view: The $view object this handler is attached to.
array $options: The item from the database; the actual contents of this will vary based upon the type of handler.
Overrides HandlerBase::init
File
- lib/
Drupal/ views/ Plugin/ views/ sort/ GroupByNumeric.php, line 22 - Definition of Drupal\views\Plugin\views\sort\GroupByNumeric.
Class
- GroupByNumeric
- Handler for GROUP BY on simple numeric fields.
Namespace
Drupal\views\Plugin\views\sortCode
public function init(ViewExecutable $view, &$options) {
parent::init($view, $options);
// Initialize the original handler.
$this->handler = views_get_handler($options['table'], $options['field'], 'sort');
$this->handler
->init($view, $options);
}