private function isMainLocation(Location $location)
    {
        $locationContentInfo = $this->contentHandler->loadContentInfo($location->contentId);

        return $locationContentInfo->mainLocationId === $location->id;
    }
private function isMainLocation(Location $location)
    {
        $locationContentInfo = $this->contentHandler->loadContentInfo($location->contentId);

        return $locationContentInfo->mainLocationId === $location->id;
    }
private function isMainLocation ( Location $ location ) { $ locationContentInfo = $ this -> contentHandler -> loadContentInfo ( $ location -> contentId ) ; return $ locationContentInfo -> mainLocationId === $ location -> id ; }
Checks if the location is the main location for its content.

@param Location $location

@return bool
Checks if the location is the main location for its content .