|
@@ 421-429 (lines=9) @@
|
| 418 |
|
* |
| 419 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 420 |
|
*/ |
| 421 |
|
public function listURLAliasesForLocation($locationId, $custom = false) |
| 422 |
|
{ |
| 423 |
|
$data = $this->gateway->loadLocationEntries($locationId, $custom); |
| 424 |
|
foreach ($data as &$entry) { |
| 425 |
|
$entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
| 426 |
|
} |
| 427 |
|
|
| 428 |
|
return $this->mapper->extractUrlAliasListFromData($data); |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
/** |
| 432 |
|
* List global aliases. |
|
@@ 440-448 (lines=9) @@
|
| 437 |
|
* |
| 438 |
|
* @return \eZ\Publish\SPI\Persistence\Content\UrlAlias[] |
| 439 |
|
*/ |
| 440 |
|
public function listGlobalURLAliases($languageCode = null, $offset = 0, $limit = -1) |
| 441 |
|
{ |
| 442 |
|
$data = $this->gateway->listGlobalEntries($languageCode, $offset, $limit); |
| 443 |
|
foreach ($data as &$entry) { |
| 444 |
|
$entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']); |
| 445 |
|
} |
| 446 |
|
|
| 447 |
|
return $this->mapper->extractUrlAliasListFromData($data); |
| 448 |
|
} |
| 449 |
|
|
| 450 |
|
/** |
| 451 |
|
* Removes url aliases. |