Deprecation: #92551 - GeneralUtility methods related to pages.l18n_cfg behavior
See forge#92551
Description
The methods
GeneralUtility:: hide If Not Translated () GeneralUtility:: hide If Default Language ()
have been marked as deprecated in favor of a new BitSet-based PHP class
\TYPO3\.
Impact
Calling both methods will trigger a PHP
E_ error.
Affected Installations
TYPO3 installation with custom third-party extensions calling these methods for explicit and special page translation handling.
Migration
Instead of
General use
$pageTranslationVisibility = new PageTranslationVisibility((int)$page['l18n_cfg'] ?? 0)
$pageTranslationVisibility->shouldBeHiddenInDefaultLanguage()
Copied!
Instead of
General use
$pageTranslationVisibility = new PageTranslationVisibility((int)$page['l18n_cfg'] ?? 0)
$pageTranslationVisibility->shouldHideTranslationIfNoTranslatedRecordExists()
Copied!