ValuePickerItemDataProvider implements FormDataProviderInterface
Inject available domain hosts into a valuepicker form
Table of Contents
Interfaces
- FormDataProviderInterface
- Interface must be implemented by form data provider classes.
Properties
Methods
- __construct() : mixed
- addData() : array<string|int, mixed>
- Add sys_domains into $result data array
- getHosts() : array<string|int, string>
- Get all hosts from sites
Properties
$siteFinder
protected
SiteFinder
$siteFinder
Methods
__construct()
public
__construct([SiteFinder|null $siteFinder = null ]) : mixed
Parameters
- $siteFinder : SiteFinder|null = null
addData()
Add sys_domains into $result data array
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
getHosts()
Get all hosts from sites
protected
getHosts() : array<string|int, string>
Return values
array<string|int, string> —domain records