structural_element_id); if (!$root) { throw new RecordNotFoundException(); } if (!$publicLink->canVisitElement($root)) { throw new AuthorizationFailedException(); } $resources = array_merge([$root], $root->findDescendants()); return $this->getContentResponse($resources); } }