Ojs\JournalBundle\Controller\SectionController::createEditForm PHP Метод

createEditForm() приватный Метод

Creates a form to edit a Section entity.
private createEditForm ( Ojs\JournalBundle\Entity\Section $entity ) : Form
$entity Ojs\JournalBundle\Entity\Section The entity
Результат Symfony\Component\Form\Form 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;
    }