private function canBeDeactivated(PageInterface $page) { if ($page->isPersistent()) { throw new AccessDeniedException($this->get('translator')->trans('admin.page.error.cant_modify_permanent')); } }