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);
}