Ojs\AdminBundle\Controller\AdminPostController::createEditForm PHP Method

createEditForm() private method

Creates a form to edit a Post entity.
private createEditForm ( AdminPost $entity ) : Form
$entity Ojs\AdminBundle\Entity\AdminPost The entity
return Symfony\Component\Form\Form The form
    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;
    }