public function deleteAction(Request $request, AdminJournalTheme $entity)
{
$this->throw404IfNotFound($entity);
$em = $this->getDoctrine()->getManager();
$csrf = $this->get('security.csrf.token_manager');
$token = $csrf->getToken('ojs_admin_journal_theme' . $entity->getId());
if ($token != $request->get('_token')) {
throw new TokenNotFoundException("Token Not Found!");
}
$em->remove($entity);
$em->flush();
$this->successFlashBag('successful.remove');
return $this->redirectToRoute('ojs_admin_journal_theme_index');
}