Dokumentiere den Mitgliederbereich (ADR-45) und sichere Medien ohne Element ab
CI Feature / test (push) Successful in 2m50s
CI Feature / test (push) Successful in 2m50s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2e6260acca
commit
0c4ef4c4ed
3 files changed
+30
-6
No files matched your search
@@ -301,7 +301,12 @@ private function collect(array &$media, array $nodes, array $contexts, Compositi
|
||||
|
||||
$key = 'element-'.$node['element_id'];
|
||||
$element = $this->element($node['element_id']);
|
||||
$text = $element === null ? ['title' => $node['title'], 'summary' => null] : $this->text($element);
|
||||
|
||||
if ($element === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$text = $this->text($element);
|
||||
$item = $media[$key] ?? [
|
||||
'key' => $key,
|
||||
'type' => $node['output_class'] === 'film' ? 'film' : 'material',
|
||||
@@ -311,7 +316,7 @@ private function collect(array &$media, array $nodes, array $contexts, Compositi
|
||||
'summary' => $text['summary'],
|
||||
'kind' => $node['kind'] ?? $this->outputLabel($node['output_class']),
|
||||
'coverage' => 'nutzbar',
|
||||
'image' => $node['poster_url'] === null ? null : ($element?->thumbnail_alt ?: $text['title']),
|
||||
'image' => $node['poster_url'] === null ? null : ($element->thumbnail_alt ?: $text['title']),
|
||||
'image_url' => $node['poster_url'],
|
||||
'used_in' => [],
|
||||
'versions' => [],
|
||||
|
||||
Reference in new issue
Block a user