‪TYPO3CMS  10.4
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\ControllerInterface

Public Member Functions

 injectFormPersistenceManager (FormPersistenceManagerInterface $formPersistenceManager)
 
 renderAction ()
 
 performAction ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (ObjectManagerInterface $objectManager)
 
 injectSignalSlotDispatcher (Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (ValidatorResolver $validatorResolver)
 
 injectViewResolver (ViewResolverInterface $viewResolver)
 
 injectReflectionService (ReflectionService $reflectionService)
 
 injectCacheService (CacheService $cacheService)
 
 injectHashService (HashService $hashService)
 
 injectMvcPropertyMappingConfigurationService (MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 injectEventDispatcher (EventDispatcherInterface $eventDispatcher)
 
 initializeControllerArgumentsBaseValidators ()
 
 processRequest (RequestInterface $request, ResponseInterface $response)
 
ControllerContext getControllerContext ()
 
 addFlashMessage ($messageBody, $messageTitle='', $severity=AbstractMessage::OK, $storeInSession=true)
 
bool canProcessRequest (RequestInterface $request)
 
 forward ($actionName, $controllerName=null, $extensionName=null, array $arguments=null)
 
 throwStatus ($statusCode, $statusMessage=null, $content=null)
 

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
 initializeView (ViewInterface $view)
 
 initializeAction ()
 
 initializeActionMethodArguments ()
 
 initializeActionMethodValidators ()
 
 renderAssetsForRequest ($request)
 
string resolveActionMethodName ()
 
 callActionMethod ()
 
 emitBeforeCallActionMethodSignal (array $preparedArguments)
 
ViewInterface resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
array getViewProperty ($extbaseFrameworkConfiguration, $setting)
 
string errorAction ()
 
 clearCacheOnError ()
 
 addErrorFlashMessage ()
 
string getErrorFlashMessage ()
 
 forwardToReferringRequest ()
 
string getFlattenedValidationErrorMessage ()
 
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
 
HashService $hashService
 
ViewInterface $view
 
string $defaultViewObjectName = \TYPO3\CMS\Fluid\View\TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
TYPO3 CMS Extbase Mvc Controller MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
TYPO3 CMS Extbase Mvc Request $request
 
TYPO3 CMS Extbase Mvc Response $response
 
TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
 
TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase Mvc Web Routing UriBuilder $uriBuilder
 
array $settings
 
TYPO3 CMS Extbase Validation ValidatorResolver $validatorResolver
 
TYPO3 CMS Extbase Mvc Controller Arguments $arguments
 
array $supportedRequestTypes = array( Request::class )
 
TYPO3 CMS Extbase Mvc Controller ControllerContext $controllerContext
 
ConfigurationManagerInterface $configurationManager
 

Detailed Description

The frontend controller

Scope: frontend

Definition at line 39 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 194 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 174 of file FormFrontendController.php.

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

◆ injectFormPersistenceManager()

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

Definition at line 50 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 96 of file FormFrontendController.php.

References TYPO3\CMS\Form\Controller\FormFrontendController\getFlexFormSettingsFromSheet(), TYPO3\CMS\Form\Controller\FormFrontendController\getFlexformSheetIdentifier(), and TYPO3\CMS\Core\Utility\GeneralUtility\xml2array().

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 151 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 84 of file FormFrontendController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\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 64 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