src/Transfer/EzPlatform/Repository/Manager/LocationManager.php
private function getLocationByObject(ValueObject $object)
    {
        $contentInfo = $this->contentService->loadContentInfo($object->data['content_id']);
        $locations = $this->locationService->loadLocations($contentInfo);
        foreach ($locations as $loc) {
            if ($loc->parentLocationId === $object->data['parent_location_id']) {
                return $loc;
            }
        }

        return;
    }
private function getLocationByObject(ValueObject $object)
    {
        $contentInfo = $this->contentService->loadContentInfo($object->data['content_id']);
        $locations = $this->locationService->loadLocations($contentInfo);
        foreach ($locations as $loc) {
            if ($loc->parentLocationId === $object->data['parent_location_id']) {
                return $loc;
            }
        }

        return;
    }
private function getLocationByObject ( ValueObject $ object ) { $ contentInfo = $ this -> contentService -> loadContentInfo ( $ object -> data [ 'content_id' ] ) ; $ locations = $ this -> locationService -> loadLocations ( $ contentInfo ) ; foreach ( $ locations as $ loc ) { if ( $ loc -> parentLocationId === $ object -> data [ 'parent_location_id' ] ) { return $ loc ; } } return ; }
Get location by content_id and parent_location_id.

@param ValueObject $object

@return Location|null
Get location by content_id and parent_location_id .