---
title: "Site"
manual: "TYPO3 Explained"
version: "12.4"
permalink: "https://docs.typo3.org/permalink/t3coreapi:typo3-request-attribute-site@12.4"
source: "ApiOverview/RequestLifeCycle/RequestAttributes/Site.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).

# Site {#typo3-request-attribute-site}

The `site` request attribute hold information about the current
site in the object `\TYPO3\CMS\Core\Site\Entity\Site`.
It is available in frontend and backend context.

Example:

```php
$site = $request->getAttribute('site');
$siteConfiguration = $site->getConfiguration();
```

> [!NOTE]
> In backend context the attribute can hold a
> `\TYPO3\CMS\Core\Site\Entity\NullSite` object when the module does not
> provide a page tree or no page in the page tree is selected.

> [!NOTE]
> **See also**
>
> For the API see [\\TYPO3\\CMS\\Core\\Site\\Entity\\Site](https://docs.typo3.org/permalink/t3coreapi:typo3-cms-core-site-entity-site@12.4).
