SiteResolving implements FormDataProviderInterface
Read onlyYes
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.
Methods
- __construct() : mixed
- addData() : array<string|int, mixed>
- Find and add site object
- resolveSite() : SiteInterface
Methods
__construct()
public
__construct(SiteFinder $siteFinder) : mixed
Parameters
- $siteFinder : SiteFinder
addData()
Find and add site object
public
addData(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
- $result : array<string|int, mixed>
-
Initialized result array
Return values
array<string|int, mixed> —Result filled with more data
resolveSite()
protected
resolveSite(int $pageId) : SiteInterface
Parameters
- $pageId : int