private function SiteSettingsLoader::addSupplementaryLinkData in Site Settings and Labels 8
Add supplementary link data to the site settings.
Parameters
array $data: The existing data.
object $field: The field object.
Return value
array The data with the new supplementary information included.
1 call to SiteSettingsLoader::addSupplementaryLinkData()
- SiteSettingsLoader::getValues in src/
SiteSettingsLoader.php - Get the values from the entity and return in as simple an array possible.
File
- src/
SiteSettingsLoader.php, line 265
Class
- SiteSettingsLoader
- Class SiteSettingsLoader.
Namespace
Drupal\site_settingsCode
private function addSupplementaryLinkData(array $data, $field) {
if (isset($field->uri) && ($url = Url::fromUri($field->uri))) {
$data = array_merge($data, [
'url' => $url,
]);
}
return $data;
}