Ojs\JournalBundle\Controller\BlockController::createCreateForm PHP Метод

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

Creates a form to create a Block entity.
private createCreateForm ( Block $entity, Journal $journal ) : Form
$entity Ojs\JournalBundle\Entity\Block The entity
$journal Ojs\JournalBundle\Entity\Journal
Результат Symfony\Component\Form\Form The form
    private function createCreateForm(Block $entity, Journal $journal)
    {
        $form = $this->createForm(new BlockType(), $entity, array('action' => $this->generateUrl('ojs_journal_block_create', ['journalId' => $journal->getId()]), 'method' => 'POST'));
        $form->add('submit', 'submit', array('label' => 'Create'));
        return $form;
    }