Ojs\ApiBundle\Controller\Admin\PageRestController::newPageAction PHP Method

newPageAction() public method

Presents the form to use to create a new Page.
public newPageAction ( ) : Symfony\Component\Form\FormTypeInterface
return Symfony\Component\Form\FormTypeInterface
    public function newPageAction()
    {
        if (!$this->isGranted('CREATE', new AdminPage())) {
            throw new AccessDeniedException();
        }
        return $this->createForm(new AdminPageType(), null, ['csrf_protection' => false]);
    }