private function createEditForm(AdminPost $entity)
{
$form = $this->createForm(new AdminPostType(), $entity, ['action' => $this->generateUrl('ojs_admin_post_update', ['id' => $entity->getId()]), 'method' => 'PUT']);
$form->add('submit', 'submit', ['label' => 'Update']);
return $form;
}