FluidTYPO3\Flux\View\ExposedTemplateView::getForm PHP Method

getForm() public method

public getForm ( string $sectionName = 'Configuration', string $formName = 'form' ) : Form | null
$sectionName string
$formName string
return FluidTYPO3\Flux\Form | null
    public function getForm($sectionName = 'Configuration', $formName = 'form')
    {
        /** @var Form $form */
        $form = $this->getStoredVariable(AbstractFormViewHelper::SCOPE, $formName, $sectionName);
        if (NULL !== $form && TRUE === isset($this->templatePathAndFilename)) {
            $form->setOption(Form::OPTION_TEMPLATEFILE, $this->templatePathAndFilename);
            $signature = ExtensionNamingUtility::getExtensionSignature($this->controllerContext->getRequest()->getControllerExtensionName());
            $overrides = (array) $this->configurationService->getTypoScriptByPath('plugin.tx_' . $signature . '.forms.' . $form->getName());
            $form->modify($overrides);
        }
        return $form;
    }