---
title: "Current content object"
manual: "TYPO3 Explained"
version: "12.4"
permalink: "https://docs.typo3.org/permalink/t3coreapi:typo3-request-attribute-current-content-object@12.4"
source: "ApiOverview/RequestLifeCycle/RequestAttributes/CurrentContentObject.rst"
rendered: "2026-10-21T15:29:37+00:00"
---

> [!WARNING]
> **Attention**
>
> TYPO3 v12 has reached end-of-life as of April 30th 2026 and
> is no longer being maintained. Use the version switcher on the top
> left of this page to select documentation for a supported version of TYPO3.
>
> Need more time before upgrading?
> You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here:
> [TYPO3 ELTS](https://typo3.com/services/extended-support-elts).

# Current content object {#typo3-request-attribute-current-content-object}

<!-- TODO: no Markdown rendering for "versionadded" -->

The Extbase-related method
\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface->getContentObject()
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
content object.

Instances with [Extbase controllers](https://docs.typo3.org/permalink/t3coreapi:extbase-action-controller@12.4) 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.

Example:

```php
/**
 * @var \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $currentContentObject
 */
$currentContentObject = $request->getAttribute('currentContentObject');
// ID of current tt_content record
$uid = $currentContentObject->data['uid'];
```
