CreateSiteConfiguration

class \TYPO3\CMS\Core\Hooks\CreateSiteConfiguration

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

Table of Contents

Properties

$allowedPageTypes  : int[]

Methods

processDatamap_afterDatabaseOperations()  : void
generateSiteConfigurationForRootPage()  : void
getNormalizedParams()  : NormalizedParams
siteExistsByRootPageId()  : bool
Checks whether a site exists by its root page. Sets up a new SiteFinder instance
updateSlugForPage()  : void
Updates the slug of the given pageId by spinning up a new DataHandler instance.

Properties

$allowedPageTypes

protected int[] $allowedPageTypes = [\TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_D…
Show the full value[\TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_DEFAULT, \TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_LINK, \TYPO3\CMS\Core\Domain\Repository\PageRepository::DOKTYPE_SHORTCUT]

Methods

processDatamap_afterDatabaseOperations()

public processDatamap_afterDatabaseOperations(string $status, string $table, mixed $id, array $fieldValues, DataHandler $dataHandler) : void

Parameters

$status : string
$table : string
$id : mixed
$fieldValues : array
$dataHandler : DataHandler

siteExistsByRootPageId()

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

protected siteExistsByRootPageId(int $rootPageId) : bool

Parameters

$rootPageId : int

the page ID (default language)

Return values

bool

updateSlugForPage()

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

protected updateSlugForPage(int $pageId) : void

Parameters

$pageId : int
On this page