‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController:
TYPO3\CMS\Backend\Controller\FormFlexAjaxController TYPO3\CMS\Backend\Controller\FormInlineAjaxController TYPO3\CMS\Backend\Controller\FormSlugAjaxController TYPO3\CMS\Backend\Controller\SiteInlineAjaxController

Protected Member Functions

array createExecutableStringRepresentationOfRegisteredRequireJsModules (array $result)
 
string getRelativePathToStylesheetFile (string $stylesheetFile)
 
array getLabelsFromLocalizationFile ($file)
 
LanguageService null getLanguageService ()
 

Detailed Description

Abstract class for a couple of FormEngine controllers triggered by ajax calls. The class containers some helpers to for instance prepare the form render result for json output.

Marked as internal for now, methods in this class may change any time.

Definition at line 33 of file AbstractFormEngineAjaxController.php.

Member Function Documentation

◆ createExecutableStringRepresentationOfRegisteredRequireJsModules()

array TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController::createExecutableStringRepresentationOfRegisteredRequireJsModules ( array  $result)
protected

Gets result array from FormEngine and returns string with js modules that need to be loaded and evaluated by JavaScript.

Parameters
array$result
Returns
‪array

Definition at line 42 of file AbstractFormEngineAjaxController.php.

Referenced by TYPO3\CMS\Backend\Controller\FormFlexAjaxController\containerAdd(), TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\mergeChildResultIntoJsonResult(), and TYPO3\CMS\Backend\Controller\FormInlineAjaxController\mergeChildResultIntoJsonResult().

◆ getLabelsFromLocalizationFile()

array TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController::getLabelsFromLocalizationFile (   $file)
protected

◆ getLanguageService()

LanguageService null TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController::getLanguageService ( )
protected

◆ getRelativePathToStylesheetFile()

string TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController::getRelativePathToStylesheetFile ( string  $stylesheetFile)
protected

Resolve a CSS file position, possibly prefixed with 'EXT:'

Parameters
string$stylesheetFile‪Given file, possibly prefixed with EXT:
Returns
‪string Web root relative position to file

Definition at line 80 of file AbstractFormEngineAjaxController.php.

References TYPO3\CMS\Core\Utility\PathUtility\getAbsoluteWebPath(), and TYPO3\CMS\Core\Utility\PathUtility\getRelativePathTo().

Referenced by TYPO3\CMS\Backend\Controller\FormFlexAjaxController\containerAdd(), TYPO3\CMS\Backend\Controller\SiteInlineAjaxController\mergeChildResultIntoJsonResult(), and TYPO3\CMS\Backend\Controller\FormInlineAjaxController\mergeChildResultIntoJsonResult().