Breaking: #107473 - TypoScript condition function getTSFE() removed 

See forge#107473

Description 

The TypoScript condition function getTSFE() has been removed.

After various properties like getTSFE().type have already been removed in TYPO3 v13, last remains of this functionality have been removed with TYPO3 v14.

The most common remaining usage was accessing the current page id using getTSFE().id, which can be substituted by request.getPageArguments().getPageId()

Impact 

Using a condition like getTSFE() will never evaluate to true and needs adaption.

Affected installations 

Instances with TypoScript conditions using function getTSFE() are affected.

Migration 

Adapt getTSFE() to an alternative. Example:

# Before
[getTSFE() && getTSFE().id == 42]

# After
[request?.getPageArguments()?.getPageId() == 42]
Copied!