Ojs\ApiBundle\Controller\Admin\LangRestController::newLangAction PHP Метод

newLangAction() публичный Метод

Presents the form to use to create a new Lang.
public newLangAction ( ) : Symfony\Component\Form\FormTypeInterface
Результат Symfony\Component\Form\FormTypeInterface
    public function newLangAction()
    {
        if (!$this->isGranted('CREATE', new Lang())) {
            throw new AccessDeniedException();
        }
        return $this->createForm(new LangType(), null, ['csrf_protection' => false]);
    }