public function viewHasHookHandlers($view) { return $this->hooks->hasHandler('view', $view) || $this->hooks->hasHandler('view_vars', $view); }