Deprecation: #95261 - Public methods in SectionMarkupGenerated events¶
See Issue #95261
In TYPO3 v10, a new page module has been introduced. In this version,
administrators could choose between those two approaches by using a feature
toggle. This toggle has been removed in TYPO3 v11, making the
unused. Two events, introduced in Issue #88921, however exposed this class.
Therefore the public methods
getLanguageId() of the
AfterSectionMarkupGeneratedEvent have been marked as deprecated.
Calling those methods in event listeners will trigger a PHP
The extension scanner also detects those calls as weak match.
All installations using one of the mentioned methods are affected.
Access necessary information using the new methods
Examples for retrieving information with the new methods:
// Get the language id of the column $event->getPageLayoutContext()->getSiteLanguage()->getLanguageId(); // Get records of the column $event->getRecords(); // Get the page record of the column $event->getPageLayoutContext()->getPageRecord();