extractUrlAliasListFromData() public method

Extracts UrlAlias objects from database $rows.
public extractUrlAliasListFromData ( array $rows ) : eZ\Publish\SPI\Persistence\Content\UrlAlias[]
$rows array
return eZ\Publish\SPI\Persistence\Content\UrlAlias[]
Ejemplo n.º 1
0
 /**
  * List global aliases.
  *
  * @param string|null $languageCode
  * @param int $offset
  * @param int $limit
  *
  * @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[]
  */
 public function listGlobalURLAliases($languageCode = null, $offset = 0, $limit = -1)
 {
     $data = $this->gateway->listGlobalEntries($languageCode, $offset, $limit);
     foreach ($data as &$entry) {
         $entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']);
     }
     return $this->mapper->extractUrlAliasListFromData($data);
 }