Ojs\ApiBundle\Controller\Admin\IndexRestController::newIndexesAction PHP Method

newIndexesAction() public method

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