eZ/Publish/Core/FieldType/RelationList/NameableField.php 1 location
|
@@ 57-61 (lines=5) @@
|
| 54 |
|
continue; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
if (isset($versionInfo->names[$languageCode])) { |
| 58 |
|
$names[] = $versionInfo->names[$languageCode]; |
| 59 |
|
} else { |
| 60 |
|
$names[] = $versionInfo->names[$contentInfo->mainLanguageCode]; |
| 61 |
|
} |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
return implode(' ', $names); |
eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php 1 location
|
@@ 217-221 (lines=5) @@
|
| 214 |
|
foreach ($contentInfos as $contentId => $contentInfo) { |
| 215 |
|
foreach ($versionInfos[$contentId] as $versionId => $versionInfo) { |
| 216 |
|
// Fallback to just main language name if versioned name data is missing |
| 217 |
|
if (isset($versionedNameData[$contentId][$versionInfo->versionNo])) { |
| 218 |
|
$names = $versionedNameData[$contentId][$versionInfo->versionNo]; |
| 219 |
|
} else { |
| 220 |
|
$names = [$contentInfo->mainLanguageCode => $contentInfo->name]; |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
$content = new Content(); |
| 224 |
|
$content->versionInfo = $versionInfo; |