Пример #1
0
 /**
  * Loads URL alias by given $id.
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
  *
  * @param string $id
  *
  * @return \eZ\Publish\SPI\Persistence\Content\UrlAlias
  */
 public function loadUrlAlias($id)
 {
     list($parentId, $textMD5) = explode('-', $id);
     $data = $this->gateway->loadRow($parentId, $textMD5);
     if (empty($data)) {
         throw new NotFoundException('URLAlias', $id);
     }
     $data['raw_path_data'] = $this->gateway->loadPathData($data['id']);
     return $this->mapper->extractUrlAliasFromData($data);
 }