Ojs\AdminBundle\Controller\AdminPublisherThemeController::createEditForm PHP Method

createEditForm() private method

Creates a form to edit a PublisherTypes entity.
private createEditForm ( PublisherTheme $entity ) : Form
$entity Ojs\JournalBundle\Entity\PublisherTheme The entity
return Symfony\Component\Form\Form The form
    private function createEditForm(PublisherTheme $entity)
    {
        $form = $this->createForm(new PublisherThemeType(), $entity, array('action' => $this->generateUrl('ojs_admin_publisher_theme_update', array('id' => $entity->getId())), 'method' => 'PUT'));
        $form->add('submit', 'submit', array('label' => 'Update'));
        return $form;
    }