eZ\Publish\Core\Persistence\Legacy\Content\Location\Handler::loadLocationsByContent PHP Method

loadLocationsByContent() public method

Loads all locations for $contentId, optionally limited to a sub tree identified by $rootLocationId.
public loadLocationsByContent ( integer $contentId, integer $rootLocationId = null ) : eZ\Publish\SPI\Persistence\Content\Location[]
$contentId integer
$rootLocationId integer
return eZ\Publish\SPI\Persistence\Content\Location[]
    public function loadLocationsByContent($contentId, $rootLocationId = null)
    {
        $rows = $this->locationGateway->loadLocationDataByContent($contentId, $rootLocationId);
        return $this->locationMapper->createLocationsFromRows($rows);
    }