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

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

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