Skip to content

Commit

Permalink
[Timeline] expose live_url
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano committed Feb 10, 2025
1 parent 2053c7f commit d8254a8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"title",
"type",
"url",
"live_url",
"visibility",
"zone_codes"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ final public function normalize($object, $format = null, array $context = []): a
'post_address' => $this->getPostAddress($object),
'image' => $this->getImage($object),
'url' => $this->getUrl($object),
'live_url' => $this->getLiveUrl($object),
'media_type' => $this->getMediaType($object),
'begin_at' => $this->formatDate($this->getBeginAt($object), 'c'),
'finish_at' => $this->formatDate($this->getFinishAt($object), 'c'),
Expand Down Expand Up @@ -233,4 +234,9 @@ protected function getParticipantsCount(object $object): ?int
{
return null;
}

protected function getLiveUrl(mixed $object): ?string
{
return null;
}
}
6 changes: 6 additions & 0 deletions src/Normalizer/Indexer/EventNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,10 @@ protected function getCommitteeUuid(object $object): ?string
{
return $object->getCommitteeUuid();
}

/** @param Event $object */
protected function getLiveUrl(mixed $object): ?string
{
return $object->liveUrl;
}
}

0 comments on commit d8254a8

Please sign in to comment.