Ojs\ApiBundle\Controller\Admin\AnnouncementRestController::newAnnouncementAction PHP Method

newAnnouncementAction() public method

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