IsContentUsedOnPageLayoutEvent

New in version 12.0: The PSR-14 event TYPO3\CMS\Backend\View\Event\IsContentUsedOnPageLayoutEvent has been introduced which serves as a drop-in replacement for the removed $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['record_is_used'] hook.

Use this event to identify if content has been used in a column that is not in a backend layout.

API

class TYPO3\CMS\Backend\View\Event\IsContentUsedOnPageLayoutEvent

Use this Event to identify whether a content element is used.

getRecord()
Return type

array

isRecordUsed()
Return type

bool

setUsed(bool $isUsed)
Parameters
  • $isUsed (bool) -- the isUsed

getKnownColumnPositionNumbers()
Return type

array

getPageLayoutContext()
Return type

TYPO3\CMS\Backend\View\PageLayoutContext