‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Site\Entity\SiteSettings Class Reference
Inheritance diagram for TYPO3\CMS\Core\Site\Entity\SiteSettings:

Public Member Functions

 __construct (private readonly array $settings)
 has (string $identifier)
 isEmpty ()
 get (string $identifier, mixed $defaultValue=null)
 getAll ()
 getAllFlat ()
 jsonSerialize ()

Private Attributes

array $flatSettings

Detailed Description

Entity representing all settings for a site. These settings are not overlaid with TypoScript settings / constants which happens in the TypoScript Parser for a specific page.

Definition at line 27 of file SiteSettings.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Site\Entity\SiteSettings::__construct ( private readonly array  $settings)

Member Function Documentation

◆ get()

TYPO3\CMS\Core\Site\Entity\SiteSettings::get ( string  $identifier,
mixed  $defaultValue = null 

Definition at line 46 of file SiteSettings.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ getAll()

TYPO3\CMS\Core\Site\Entity\SiteSettings::getAll ( )

Definition at line 51 of file SiteSettings.php.

◆ getAllFlat()

TYPO3\CMS\Core\Site\Entity\SiteSettings::getAllFlat ( )

◆ has()

TYPO3\CMS\Core\Site\Entity\SiteSettings::has ( string  $identifier)

Definition at line 36 of file SiteSettings.php.

References TYPO3\CMS\Webhooks\Message\$identifier.

◆ isEmpty()

TYPO3\CMS\Core\Site\Entity\SiteSettings::isEmpty ( )

◆ jsonSerialize()

TYPO3\CMS\Core\Site\Entity\SiteSettings::jsonSerialize ( )

Definition at line 61 of file SiteSettings.php.

Member Data Documentation

◆ $flatSettings

array TYPO3\CMS\Core\Site\Entity\SiteSettings::$flatSettings

Definition at line 29 of file SiteSettings.php.

Referenced by TYPO3\CMS\Core\Site\Entity\SiteSettings\getAllFlat().