‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Hooks\CreateSiteConfiguration Class Reference

Public Member Functions

 processDatamap_afterDatabaseOperations (string $status, string $table, $id, array $fieldValues, DataHandler $dataHandler)
 

Protected Member Functions

 generateSiteConfigurationForRootPage (int $pageId, BackendUserAuthentication $backendUser)
 
 getNormalizedParams ()
 
 updateSlugForPage (int $pageId)
 
 siteExistsByRootPageId (int $rootPageId)
 

Protected Attributes

int[] $allowedPageTypes
 

Detailed Description

Hook for creating a basic site configuration for new pages on root level.

This class is a hook implementation and is not part of the TYPO3 Core API.

Definition at line 42 of file CreateSiteConfiguration.php.

Member Function Documentation

◆ generateSiteConfigurationForRootPage()

◆ getNormalizedParams()

◆ processDatamap_afterDatabaseOperations()

TYPO3\CMS\Core\Hooks\CreateSiteConfiguration::processDatamap_afterDatabaseOperations ( string  $status,
string  $table,
  $id,
array  $fieldValues,
DataHandler  $dataHandler 
)

Take action only on

  • ‪new records
  • ‪pages table
  • ‪live workspace
  • ‪resolved uids
  • ‪pages on root level
  • ‪pages in default language
  • ‪non-versioned records
  • ‪allowed doktypes
  • ‪not bulk importing things via CLI

Definition at line 52 of file CreateSiteConfiguration.php.

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

◆ siteExistsByRootPageId()

TYPO3\CMS\Core\Hooks\CreateSiteConfiguration::siteExistsByRootPageId ( int  $rootPageId)
protected

Checks whether a site exists by its root page. Sets up a new SiteFinder instance

Parameters
int$rootPageId‪the page ID (default language)

Definition at line 147 of file CreateSiteConfiguration.php.

Referenced by TYPO3\CMS\Core\Hooks\CreateSiteConfiguration\generateSiteConfigurationForRootPage().

◆ updateSlugForPage()

TYPO3\CMS\Core\Hooks\CreateSiteConfiguration::updateSlugForPage ( int  $pageId)
protected

Updates the slug of the given pageId by spinning up a new DataHandler instance.

Definition at line 128 of file CreateSiteConfiguration.php.

Referenced by TYPO3\CMS\Core\Hooks\CreateSiteConfiguration\generateSiteConfigurationForRootPage().

Member Data Documentation

◆ $allowedPageTypes

int [] TYPO3\CMS\Core\Hooks\CreateSiteConfiguration::$allowedPageTypes
protected
‪TYPO3\CMS\Core\Domain\Repository\PageRepository\DOKTYPE_DEFAULT
‪const DOKTYPE_DEFAULT
Definition: PageRepository.php:98
‪TYPO3\CMS\Core\Domain\Repository\PageRepository\DOKTYPE_SHORTCUT
‪const DOKTYPE_SHORTCUT
Definition: PageRepository.php:100
‪TYPO3\CMS\Core\Domain\Repository\PageRepository\DOKTYPE_LINK
‪const DOKTYPE_LINK
Definition: PageRepository.php:99