.. include:: /Includes.rst.txt .. index:: Events; IsContentUsedOnPageLayoutEvent .. _IsContentUsedOnPageLayoutEvent: ============================== IsContentUsedOnPageLayoutEvent ============================== .. versionadded:: 12.0 This event :php:`TYPO3\CMS\Backend\View\Event\IsContentUsedOnPageLayoutEvent` serves as a drop-in replacement for the removed :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['record_is_used']` hook. Use the PSR-14 event :php:`\TYPO3\CMS\Backend\View\Event\IsContentUsedOnPageLayoutEvent` to identify if content has been used in a column that is not in a backend layout. Example ======= .. literalinclude:: _IsContentUsedOnPageLayoutEvent/_ContentUsedOnPage.php :language: php :caption: EXT:my_extension/Classes/Listener/ContentUsedOnPage.php .. include:: /_includes/EventsAttributeAdded.rst.txt API === .. include:: /CodeSnippets/Events/Backend/IsContentUsedOnPageLayoutEvent.rst.txt