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, using a feature toggle. This toggle has been removed in v11, making the PageLayoutView unused. Two events, introduced in Issue #88921, however exposed this class.

Therefore the public methods getPageLayoutView() and getLanguageId() of the BeforeSectionMarkupGeneratedEvent and AfterSectionMarkupGeneratedEvent have been deprecated.


Calling those methods in event listeners will trigger a deprecation log entry. The extension scanner also detects those calls as weak match.

Affected Installations

All installations using one of the mentioned methods.


Access necessary information using the new methods getPageLayoutContext() and getRecords().

Examples for retrieving information with the new methods:

// Get the language id of the column

// Get records of the column

// Get the page record of the column