@@ 494-502 (lines=9) @@ | ||
491 | * |
|
492 | * @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
|
493 | */ |
|
494 | public function listURLAliasesForLocation($locationId, $custom = false) |
|
495 | { |
|
496 | $data = $this->gateway->loadLocationEntries($locationId, $custom); |
|
497 | foreach ($data as &$entry) { |
|
498 | $entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
|
499 | } |
|
500 | ||
501 | return $this->mapper->extractUrlAliasListFromData($data); |
|
502 | } |
|
503 | ||
504 | /** |
|
505 | * List global aliases. |
|
@@ 515-523 (lines=9) @@ | ||
512 | * |
|
513 | * @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
|
514 | */ |
|
515 | public function listGlobalURLAliases($languageCode = null, $offset = 0, $limit = -1) |
|
516 | { |
|
517 | $data = $this->gateway->listGlobalEntries($languageCode, $offset, $limit); |
|
518 | foreach ($data as &$entry) { |
|
519 | $entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
|
520 | } |
|
521 | ||
522 | return $this->mapper->extractUrlAliasListFromData($data); |
|
523 | } |
|
524 | ||
525 | /** |
|
526 | * Removes url aliases. |