‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\FormDataProvider\ReturnUrl Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\ReturnUrl:
TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

 __construct (private readonly UriBuilder $uriBuilder)
 
 addData (array $result)
 

Detailed Description

Resolve return Url if not set from outside. This is used by various field elements when a "sub" FormEngine view is triggered. An example is the "Add" button on type="group" elements.

Todo:
‪: We may want to get rid of this eventually: The returnUrl should typically be set by calling controllers as initial data, since only controllers know details about current context. The fallback below is a bit of guesswork.

Definition at line 33 of file ReturnUrl.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Form\FormDataProvider\ReturnUrl::__construct ( private readonly UriBuilder  $uriBuilder)

Definition at line 35 of file ReturnUrl.php.

Member Function Documentation

◆ addData()

TYPO3\CMS\Backend\Form\FormDataProvider\ReturnUrl::addData ( array  $result)

Add form data to result array

Parameters
array$result‪Initialized result array
Returns
‪array Result filled with more data

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 37 of file ReturnUrl.php.