‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Event\AfterTypoScriptDeterminedEvent Class Reference

Public Member Functions

 __construct (private FrontendTypoScript $frontendTypoScript,)
 getFrontendTypoScript ()

Detailed Description

This event is dispatched after the FrontendTypoScript object has been calculated, just before it is attached to the request.

The event is designed to enable listeners to act on specific TypoScript conditions. Listeners must not modify TypoScript at this point, the core will try to actively prevent this.

This event is especially useful when "upper" middlewares that do not have the determined TypoScript need to behave differently depending on TypoScript 'config' that is only created after them. The core uses this in the TimeTrackInitialization and the WorkspacePreview middlewares, to determine debugging and preview details.

Note both 'settings' ("constants") and 'config' are always set within the FrontendTypoScript at this point, even in 'fully cached page' scenarios. 'setup' and (

) 'page' may not be set.

Definition at line 40 of file AfterTypoScriptDeterminedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Event\AfterTypoScriptDeterminedEvent::__construct ( private FrontendTypoScript  $frontendTypoScript)

Definition at line 42 of file AfterTypoScriptDeterminedEvent.php.

Member Function Documentation

◆ getFrontendTypoScript()

TYPO3\CMS\Frontend\Event\AfterTypoScriptDeterminedEvent::getFrontendTypoScript ( )