public function overlayFlexFormValues($row, $configuration, $form)
{
if ($GLOBALS['TSFE']->sys_language_uid > 0) {
$overlays = $this->recordService->get('pages_language_overlay', '*', sprintf('hidden = 0 AND deleted = 0 AND sys_language_uid = %d AND pid = %d', $GLOBALS['TSFE']->sys_language_uid, $row['uid']));
$fieldName = $this->getFieldName($row);
if (count($overlays) > 0) {
foreach ($overlays as $overlay) {
if (isset($overlay[$fieldName])) {
// Overlays may not consistently contain a workable value; skip those that don't
$overlayConfiguration = $this->pageConfigurationService->convertFlexFormContentToArray($overlay[$fieldName], $form, null, null);
$configuration = RecursiveArrayUtility::merge($configuration, $overlayConfiguration);
}
}
}
}
return $configuration;
}