FrontendSimulatorUtility
Utilities to simulate a frontend in backend context.
ONLY USED INTERNALLY, MIGHT CHANGE WITHOUT NOTICE!
Table of Contents
Properties
Methods
- resetFrontendEnvironment() : void
- Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
- simulateFrontendEnvironment() : void
- \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle() relies on $GLOBALS['TSFE']
Properties
$tsfeBackup
protected
static TypoScriptFrontendController|null
$tsfeBackup
Methods
resetFrontendEnvironment()
Resets $GLOBALS['TSFE'] if it was previously changed by simulateFrontendEnvironment()
public
static resetFrontendEnvironment() : void
Tags
simulateFrontendEnvironment()
\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle() relies on $GLOBALS['TSFE']
public
static simulateFrontendEnvironment([ContentObjectRenderer|null $cObj = null ]) : void
Parameters
- $cObj : ContentObjectRenderer|null = null