public function patchPublishertypeAction(Request $request, $id)
{
try {
$entity = $this->container->get('ojs_api.publisher_type.handler')->patch($this->getOr404($id), $request->request->all());
if (!$this->isGranted('EDIT', $entity)) {
throw new AccessDeniedException();
}
$routeOptions = array('id' => $entity->getId(), '_format' => $request->get('_format'));
return $this->routeRedirectView('api_1_get_persontitle', $routeOptions, Codes::HTTP_NO_CONTENT);
} catch (InvalidFormException $exception) {
return $exception->getForm();
}
}