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

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

Creates a form to edit a Lang entity.
private createEditForm ( JournalFile $entity ) : Form
$entity Ojs\JournalBundle\Entity\JournalFile The entity
Результат Symfony\Component\Form\Form The form
    private function createEditForm(JournalFile $entity)
    {
        $form = $this->createForm(new JournalFileType(), $entity, ['action' => $this->generateUrl('ojs_journal_filemanager_update', ['id' => $entity->getId(), 'journalId' => $entity->getJournal()->getId()]), 'method' => 'PUT']);
        $form->add('submit', 'submit', ['label' => 'Update']);
        return $form;
    }