‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Form\FormDataProvider\SiteResolving Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\FormDataProvider\SiteResolving:
TYPO3\CMS\Backend\Form\FormDataProviderInterface

Public Member Functions

 __construct (SiteFinder $siteFinder=null)
 
array addData (array $result)
 

Protected Member Functions

SiteInterface resolveSite (int $pageId)
 

Protected Attributes

SiteFinder $siteFinder
 

Detailed Description

This data provider is used in casual edit record / new record / edit page / new page scenarios: It find the site object for a page and adds it as 'site' in $result.

Note this data provider has a loose dependency to DatabaseDefaultLanguagePageRow, it needs that to determine the correct base pid if localized pages are edited.

Definition at line 34 of file SiteResolving.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Form\FormDataProvider\SiteResolving::__construct ( SiteFinder  $siteFinder = null)

Member Function Documentation

◆ addData()

array TYPO3\CMS\Backend\Form\FormDataProvider\SiteResolving::addData ( array  $result)

Find and add site object

Parameters
array$result
Returns
‪array

Implements TYPO3\CMS\Backend\Form\FormDataProviderInterface.

Definition at line 51 of file SiteResolving.php.

References TYPO3\CMS\Backend\Form\FormDataProvider\SiteResolving\resolveSite().

◆ resolveSite()

SiteInterface TYPO3\CMS\Backend\Form\FormDataProvider\SiteResolving::resolveSite ( int  $pageId)
protected
Parameters
int$pageId
Returns
‪SiteInterface

Definition at line 74 of file SiteResolving.php.

Referenced by TYPO3\CMS\Backend\Form\FormDataProvider\SiteResolving\addData().

Member Data Documentation

◆ $siteFinder

SiteFinder TYPO3\CMS\Backend\Form\FormDataProvider\SiteResolving::$siteFinder
protected