Ojs\ApiBundle\Controller\Admin\PostRestController::newPostAction PHP Method

newPostAction() public method

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