---
title: "Site"
manual: "TYPO3 Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3coreapi:typo3-request-attribute-site@main"
source: "ApiOverview/RequestLifeCycle/RequestAttributes/Site.rst"
rendered: "2026-09-24T12:36:55+00:00"
---

# 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@main).
