Paket 2: konfigurierbare Inhaltsart an Identitaet
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
7820bececb
commit
1a2b1298b5
8 files changed
+233
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user