handler = Views::handlerManager('sort')->getHandler($options); $this->handler->init($view, $display, $options); } /** * Called to add the field to a query. */ public function query() { $this->ensureMyTable(); $params = [ 'function' => $this->options['group_type'], ]; $this->query->addOrderBy($this->tableAlias, $this->realField, $this->options['order'], NULL, $params); } public function adminLabel($short = FALSE) { return $this->getField(parent::adminLabel($short)); } }