eZ\Publish\Core\Persistence\Legacy\Content\TreeHandler::loadLocation PHP Method

loadLocation() public method

Loads the data for the location identified by $locationId.
public loadLocation ( integer $locationId ) : eZ\Publish\SPI\Persistence\Content\Location
$locationId integer
return eZ\Publish\SPI\Persistence\Content\Location
    public function loadLocation($locationId)
    {
        $data = $this->locationGateway->getBasicNodeData($locationId);
        return $this->locationMapper->createLocationFromRow($data);
    }

Usage Example

Beispiel #1
0
 /**
  * Loads the data for the location identified by $locationId.
  *
  * @param int $locationId
  *
  * @return \eZ\Publish\SPI\Persistence\Content\Location
  */
 public function load($locationId)
 {
     return $this->treeHandler->loadLocation($locationId);
 }