#111521Remove getData type "global" from ContentObjectRenderer
Description
The TypoScript getData type global allows reading arbitrary PHP global variables, e.g. data = global:TYPO3_CONF_VARS|SYS|sitename.
The type is a leftover from times when frontend state was kept in globals such as $GLOBALS['TSFE']. Nowadays this state lives in request attributes, the Context API and the site configuration, all of which are accessible via dedicated getData types:
request/gp– request attributes and parameterscontext– Context aspectssite,siteLanguage,siteSettings– site configurationgetenv,getIndpEnv– environment and server valuesapplicationcontext– application contextpage,level*,fullRootLine– page and rootline data
Since all common use cases are covered by these types, global is no longer needed and only couples TypoScript to the internal layout of PHP globals.
The getData type global should be removed. Integrators requiring a value not provided by an existing type can migrate to one of the types above or provide a custom value using the PSR-14 event AfterGetDataResolvedEvent.
Reviews 1
History 01
-
Gerrit Code Review pushed patch set 1 for main to change 97866 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-21T08:45:53+00:00" > 11/21/26, 08:45 </span>