SiteResolving implements FormDataProviderInterface
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.
Table of Contents
Interfaces
- FormDataProviderInterface
- Interface must be implemented by form data provider classes.
Properties
Methods
- __construct() : mixed
- addData() : array<string|int, mixed>
- Find and add site object
- resolveSite() : SiteInterface
Properties
$siteFinder
protected
SiteFinder
$siteFinder
Methods
__construct()
public
__construct([SiteFinder|null $siteFinder = null ]) : mixed
Parameters
- $siteFinder : SiteFinder|null = null
addData()
Find and add site object
public
addData(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
Return values
array<string|int, mixed>resolveSite()
protected
resolveSite(int $pageId) : SiteInterface
Parameters
- $pageId : int