‪TYPO3CMS  10.4
TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility Class Reference

Static Public Member Functions

static simulateFrontendEnvironment (ContentObjectRenderer $cObj=null)
 
static resetFrontendEnvironment ()
 

Static Protected Attributes

static TypoScriptFrontendController null $tsfeBackup
 

Detailed Description

Utilities to simulate a frontend in backend context.

ONLY USED INTERNALLY, MIGHT CHANGE WITHOUT NOTICE!

Definition at line 29 of file FrontendSimulatorUtility.php.

Member Function Documentation

◆ resetFrontendEnvironment()

static TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::resetFrontendEnvironment ( )
static

◆ simulateFrontendEnvironment()

static TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::simulateFrontendEnvironment ( ContentObjectRenderer  $cObj = null)
static

Sets the $TSFE->cObjectDepthCounter in Backend mode This somewhat hacky work around is currently needed because the cObjGetSingle() function of \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer relies on this setting

Parameters
ContentObjectRenderer | null$cObj

Definition at line 41 of file FrontendSimulatorUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Extbase\Configuration\AbstractConfigurationManager\getConfiguration().

Member Data Documentation

◆ $tsfeBackup

TypoScriptFrontendController null TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::$tsfeBackup
staticprotected