src/Event/ReadModel/JSONLD/EventLDProjector.php
private function UDB3Media($document)
    {
        $media = [];

        if ($document) {
            $item = $document->getBody();
            // At the moment we do not include any media coming from UDB2.
            // If the mediaObject property contains data it's coming from UDB3.
            $item->mediaObject = isset($item->mediaObject) ? $item->mediaObject : [];
        }

        return $media;
    }
private function UDB3Media($document)
    {
        $media = [];

        if ($document) {
            $item = $document->getBody();
            // At the moment we do not include any media coming from UDB2.
            // If the mediaObject property contains data it's coming from UDB3.
            $item->mediaObject = isset($item->mediaObject) ? $item->mediaObject : [];
        }

        return $media;
    }
private function UDB3Media ( $ document ) { $ media = [ ] ; if ( $ document ) { $ item = $ document -> getBody ( ) ; // At the moment we do not include any media coming from UDB2. // If the mediaObject property contains data it's coming from UDB3. $ item -> mediaObject = isset ( $ item -> mediaObject ) ? $ item -> mediaObject : [ ] ; } return $ media ; }
Return the media of an event if it already exists.

@param JsonDocument $document The JsonDocument.

@return array
A list of media objects.
Return the media of an event if it already exists .