Current content object¶
New in version 12.4: The Extbase-related method
was marked as deprecated in TYPO3 v12 and has been removed in TYPO3 v13.
Instead, this request attribute can be used to retrieve the current
Instances with Extbase controllers may need to retrieve data from the current content object that initiated the frontend Extbase plugin call.
In this case, controllers can access the current content object from the Extbase request object.
/** * @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $currentContentObject */ $currentContentObject = $request->getAttribute('currentContentObject');