‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController:
TYPO3\CMS\Backend\Form\FormResultTrait 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, bool $skipInstructions=false)
 
 addRegisteredRequireJsModulesToJavaScriptItems (array $result, JavaScriptItems $items)
 
string getRelativePathToStylesheetFile (string $stylesheetFile)
 
array getLabelsFromLocalizationFile ($file)
 
LanguageService null getLanguageService ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\FormResultTrait
 serializeJavaScriptModuleInstructionItems (JavaScriptModuleInstruction $instruction)
 

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 37 of file AbstractFormEngineAjaxController.php.

Member Function Documentation

◆ addRegisteredRequireJsModulesToJavaScriptItems()

TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController::addRegisteredRequireJsModulesToJavaScriptItems ( array  $result,
JavaScriptItems  $items 
)
protected

◆ createExecutableStringRepresentationOfRegisteredRequireJsModules()

array TYPO3\CMS\Backend\Controller\AbstractFormEngineAjaxController::createExecutableStringRepresentationOfRegisteredRequireJsModules ( array  $result,
bool  $skipInstructions = false 
)
protected

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

Parameters
array$result
bool$skipInstructions‪whether to skip JavaScriptModuleInstruction
Returns
‪array

Definition at line 48 of file AbstractFormEngineAjaxController.php.

References TYPO3\CMS\Backend\Form\FormResultTrait\serializeJavaScriptModuleInstructionItems().

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