Paket 2: konfigurierbare Inhaltsart an Identitaet
Deploy Test / test (push) Failing after 8s
Deploy Test / deploy (push) Skipped

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-16 06:56:47 +01:00
1 parent 7820bececb
commit 1a2b1298b5
8 files changed
+233 -1

No files matched your search

+12 -1
View File
@@ -34,7 +34,18 @@ public function kindLabel(LicenseArticle $article): ?string
return null;
}
$release->loadMissing('rootCompositionVersion.composition');
$release->loadMissing([
'rootCompositionVersion.composition.editorialContentKind',
'rootElementVersion.element.editorialContentKind',
]);
$editorial = $release->rootCompositionVersion?->composition?->editorialContentKind?->label
?? $release->rootElementVersion?->element?->editorialContentKind?->label;
if ($editorial !== null) {
return $editorial;
}
$kind = $release->rootCompositionVersion?->composition?->kind;
return $kind instanceof CompositionKind ? $kind->label() : null;