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

Public Member Functions

 injectFormPersistenceManager (FormPersistenceManagerInterface $formPersistenceManager)
 
 renderAction ()
 
 performAction ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectResponseFactory (ResponseFactoryInterface $responseFactory)
 
 injectStreamFactory (StreamFactoryInterface $streamFactory)
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (ObjectManagerInterface $objectManager)
 
 injectSignalSlotDispatcher (Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (ValidatorResolver $validatorResolver)
 
 injectViewResolver (ViewResolverInterface $viewResolver)
 
 injectReflectionService (ReflectionService $reflectionService)
 
 injectHashService (HashService $hashService)
 
 injectMvcPropertyMappingConfigurationService (MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 injectEventDispatcher (EventDispatcherInterface $eventDispatcher)
 
 injectPropertyMapper (PropertyMapper $propertyMapper)
 
 injectInternalFlashMessageService (FlashMessageService $flashMessageService)
 
 injectInternalExtensionService (ExtensionService $extensionService)
 
 initializeControllerArgumentsBaseValidators ()
 
ResponseInterface processRequest (RequestInterface $request)
 
ControllerContext getControllerContext ()
 
 addFlashMessage ($messageBody, $messageTitle='', $severity=AbstractMessage::OK, $storeInSession=true)
 
never forward ($actionName, $controllerName=null, $extensionName=null, array $arguments=null)
 
never 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 (RequestInterface $request)
 
ViewInterface resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
array getViewProperty ($extbaseFrameworkConfiguration, $setting)
 
ResponseInterface errorAction ()
 
 addErrorFlashMessage ()
 
string bool getErrorFlashMessage ()
 
ResponseInterface null forwardToReferringRequest ()
 
string getFlattenedValidationErrorMessage ()
 
 getFlashMessageQueue (string $identifier=null)
 
ControllerContext buildControllerContext ()
 
never redirect ($actionName, $controllerName=null, $extensionName=null, array $arguments=null, $pageUid=null, $_=null, $statusCode=303)
 
never redirectToUri ($uri, $_=null, $statusCode=303)
 
string addBaseUriIfNecessary ($uri)
 
 mapRequestArgumentsToControllerArguments ()
 
ResponseInterface htmlResponse (string $html=null)
 
ResponseInterface jsonResponse (string $json=null)
 

Protected Attributes

TYPO3 CMS Form Mvc Persistence FormPersistenceManagerInterface $formPersistenceManager
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
TYPO3 CMS Extbase Reflection ReflectionService $reflectionService
 
HashService $hashService
 
ViewInterface $view
 
string $defaultViewObjectName = TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
TYPO3 CMS Extbase Mvc Controller MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
Request $request
 
TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
 
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
 
ControllerContext $controllerContext
 
ConfigurationManagerInterface $configurationManager
 

Detailed Description

The frontend controller

Scope: frontend

Definition at line 41 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 197 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 177 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 51 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 99 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 154 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 87 of file FormFrontendController.php.

◆ 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 65 of file FormFrontendController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\htmlResponse(), 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