src/Entity/Decorator/JsonLdProvider.php
private function getLocations($locations)
    {
        $array=[];
        foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */
            array_push(
                $array,
                [
                    '@type' => 'Place',
                    'address' => [
                        '@type' => 'PostalAddress',
                        'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(),
                        'postalCode' => $location->getPostalCode(),
                        'addressLocality' => $location->getCity(),
                        'addressCountry' => $location->getCountry(),
                        'addressRegion' => $location->getRegion(),
                    ]
                ]
            );
        }
        return $array;
    }
private function getLocations($locations)
    {
        $array=[];
        foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */
            array_push(
                $array,
                [
                    '@type' => 'Place',
                    'address' => [
                        '@type' => 'PostalAddress',
                        'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(),
                        'postalCode' => $location->getPostalCode(),
                        'addressLocality' => $location->getCity(),
                        'addressCountry' => $location->getCountry(),
                        'addressRegion' => $location->getRegion(),
                    ]
                ]
            );
        }
        return $array;
    }
private function getLocations ( $ locations ) { $ array = [ ] ; foreach ( $ locations as $ location ) { /* @var \Core\Entity\LocationInterface $location */ array_push ( $ array , [ '@type' => 'Place' , 'address' => [ '@type' => 'PostalAddress' , 'streetAddress' => $ location -> getStreetname ( ) . ' ' . $ location -> getStreetnumber ( ) , 'postalCode' => $ location -> getPostalCode ( ) , 'addressLocality' => $ location -> getCity ( ) , 'addressCountry' => $ location -> getCountry ( ) , 'addressRegion' => $ location -> getRegion ( ) , ] ] ) ; } return $ array ; }
Generates a location array

@param Collection $locations,

@return array
Generates a location array