private createEditForm ( Ojs\JournalBundle\Entity\Section $entity ) : |
||
$entity | Ojs\JournalBundle\Entity\Section | The entity |
return | The form |
private function createEditForm(Section $entity)
{
$form = $this->createForm(new SectionType(), $entity, array('action' => $this->generateUrl('ojs_journal_section_update', array('id' => $entity->getId(), 'journalId' => $entity->getJournal()->getId())), 'method' => 'PUT'));
$form->add('submit', 'submit', array('label' => 'Update'));
return $form;
}