‪TYPO3CMS  9.5
TYPO3\CMS\Form\Controller\FormFrontendController Class Reference
Inheritance diagram for TYPO3\CMS\Form\Controller\FormFrontendController:
TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\AbstractController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Public Member Functions

 injectFormPersistenceManager (\TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface $formPersistenceManager)
 
 renderAction ()
 
 performAction ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 injectCacheService (\TYPO3\CMS\Extbase\Service\CacheService $cacheService)
 
 injectMvcPropertyMappingConfigurationService (\TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 processRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request, \TYPO3\CMS\Extbase\Mvc\ResponseInterface $response)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
 injectSignalSlotDispatcher (\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (\TYPO3\CMS\Extbase\Validation\ValidatorResolver $validatorResolver)
 
ControllerContext getControllerContext ()
 
 __construct ()
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 addFlashMessage ($messageBody, $messageTitle='', $severity=\TYPO3\CMS\Core\Messaging\AbstractMessage::OK, $storeInSession=true)
 
bool canProcessRequest (\TYPO3\CMS\Extbase\Mvc\RequestInterface $request)
 
 forward ($actionName, $controllerName=null, $extensionName=null, array $arguments=null)
 
 throwStatus ($statusCode, $statusMessage=null, $content=null)
 
 initializeControllerArgumentsBaseValidators ()
 

Protected Member Functions

array overrideByFlexFormSettings (array $formDefinition)
 
array overrideByTypoScriptSettings (array $formDefinition)
 
string getFlexformSheetIdentifier (array $formDefinition, string $prototypeName, string $finisherIdentifier)
 
array getFlexFormSettingsFromSheet (array $flexForm, string $sheetIdentifier)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 renderAssetsForRequest ($request)
 
 initializeActionMethodArguments ()
 
 initializeActionMethodValidators ()
 
string resolveActionMethodName ()
 
 callActionMethod ()
 
 emitBeforeCallActionMethodSignal (array $preparedArguments)
 
ViewInterface resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
array getViewProperty ($extbaseFrameworkConfiguration, $setting)
 
mixed resolveViewObjectName ()
 
 initializeView (ViewInterface $view)
 
 initializeAction ()
 
string errorAction ()
 
 clearCacheOnError ()
 
 addErrorFlashMessage ()
 
string getErrorFlashMessage ()
 
 forwardToReferringRequest ()
 
string getFlattenedValidationErrorMessage ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
TYPO3 CMS Extbase Mvc Controller ControllerContext buildControllerContext ()
 
 redirect ($actionName, $controllerName=null, $extensionName=null, array $arguments=null, $pageUid=null, $delay=0, $statusCode=303)
 
 redirectToUri ($uri, $delay=0, $statusCode=303)
 
string addBaseUriIfNecessary ($uri)
 
 mapRequestArgumentsToControllerArguments ()
 

Protected Attributes

TYPO3 CMS Form Mvc Persistence FormPersistenceManagerInterface $formPersistenceManager
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
TYPO3 CMS Extbase Reflection ReflectionService $reflectionService
 
TYPO3 CMS Extbase Service CacheService $cacheService
 
ViewInterface $view
 
string $namespacesViewObjectNamePattern = '@vendor\@extension\View\@controller\@action@format'
 
array $viewFormatToObjectNameMap = array( )
 
string $defaultViewObjectName = \TYPO3\CMS\Fluid\View\TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
TYPO3 CMS Extbase Mvc Controller MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
TYPO3 CMS Extbase Mvc Request $request
 
TYPO3 CMS Extbase Mvc Response $response
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\AbstractController
TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
 
TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase Mvc Web Routing UriBuilder $uriBuilder
 
string $extensionName
 
array $settings
 
TYPO3 CMS Extbase Mvc RequestInterface $request
 
TYPO3 CMS Extbase Mvc ResponseInterface $response
 
TYPO3 CMS Extbase Validation ValidatorResolver $validatorResolver
 
TYPO3 CMS Extbase Mvc Controller Arguments $arguments
 
array $supportedRequestTypes = array( \TYPO3\CMS\Extbase\Mvc\Request::class )
 
TYPO3 CMS Extbase Mvc Controller ControllerContext $controllerContext
 
ConfigurationManagerInterface $configurationManager
 

Additional Inherited Members

- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
static array getActionMethodParameters ($objectManager)
 

Detailed Description

The frontend controller

Scope: frontend

Definition at line 36 of file FormFrontendController.php.

Member Function Documentation

◆ getFlexFormSettingsFromSheet()

array TYPO3\CMS\Form\Controller\FormFrontendController::getFlexFormSettingsFromSheet ( array  $flexForm,
string  $sheetIdentifier 
)
protected
Parameters
array$flexForm
string$sheetIdentifier
Returns
‪array

Definition at line 189 of file FormFrontendController.php.

Referenced by TYPO3\CMS\Form\Controller\FormFrontendController\overrideByFlexFormSettings().

◆ getFlexformSheetIdentifier()

string TYPO3\CMS\Form\Controller\FormFrontendController::getFlexformSheetIdentifier ( array  $formDefinition,
string  $prototypeName,
string  $finisherIdentifier 
)
protected
Parameters
array$formDefinition
string$prototypeName
string$finisherIdentifier
Returns
‪string

Definition at line 169 of file FormFrontendController.php.

Referenced by TYPO3\CMS\Form\Controller\FormFrontendController\overrideByFlexFormSettings().

◆ injectFormPersistenceManager()

TYPO3\CMS\Form\Controller\FormFrontendController::injectFormPersistenceManager ( \TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface  $formPersistenceManager)
Parameters
\TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface$formPersistenceManager

Definition at line 47 of file FormFrontendController.php.

References TYPO3\CMS\Form\Controller\FormFrontendController\$formPersistenceManager.

◆ overrideByFlexFormSettings()

array TYPO3\CMS\Form\Controller\FormFrontendController::overrideByFlexFormSettings ( array  $formDefinition)
protected

Override the formDefinition with additional data from the Flexform settings. For now, only finisher settings are overridable.

Parameters
array$formDefinition
Returns
‪array

Definition at line 93 of file FormFrontendController.php.

References TYPO3\CMS\Form\Controller\FormFrontendController\getFlexFormSettingsFromSheet(), and TYPO3\CMS\Form\Controller\FormFrontendController\getFlexformSheetIdentifier().

Referenced by TYPO3\CMS\Form\Controller\FormFrontendController\renderAction().

◆ overrideByTypoScriptSettings()

array TYPO3\CMS\Form\Controller\FormFrontendController::overrideByTypoScriptSettings ( array  $formDefinition)
protected

Every formDefinition setting are overridable by typoscript. If the typoscript configuration path plugin.tx_form.settings.formDefinitionOverrides.<identifier> exists, this settings are merged into the formDefinition.

Parameters
array$formDefinition
Returns
‪array

Definition at line 147 of file FormFrontendController.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\mergeRecursiveWithOverrule().

Referenced by TYPO3\CMS\Form\Controller\FormFrontendController\renderAction().

◆ performAction()

TYPO3\CMS\Form\Controller\FormFrontendController::performAction ( )

This method is used to display all pages / finishers except the first page because its non cached.

Definition at line 81 of file FormFrontendController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\AbstractController\forward().

◆ renderAction()

TYPO3\CMS\Form\Controller\FormFrontendController::renderAction ( )

Take the form which should be rendered from the plugin settings and overlay the formDefinition with additional data from flexform and typoscript settings. This method is used directly to display the first page from the formDefinition because its cached.

Definition at line 61 of file FormFrontendController.php.

References TYPO3\CMS\Form\Controller\FormFrontendController\overrideByFlexFormSettings(), TYPO3\CMS\Form\Controller\FormFrontendController\overrideByTypoScriptSettings(), and TYPO3\CMS\Core\Utility\ArrayUtility\setValueByPath().

Member Data Documentation

◆ $formPersistenceManager

TYPO3 CMS Form Mvc Persistence FormPersistenceManagerInterface TYPO3\CMS\Form\Controller\FormFrontendController::$formPersistenceManager
protected