eZ\Publish\Core\Persistence\Legacy\Content\UrlAlias\Handler::listURLAliasesForLocation PHP Метод

listURLAliasesForLocation() публичный Метод

List of user generated or autogenerated url entries, pointing to $locationId.
public listURLAliasesForLocation ( mixed $locationId, boolean $custom = false ) : eZ\Publish\SPI\Persistence\Content\UrlAlias[]
$locationId mixed
$custom boolean if true the user generated aliases are listed otherwise the autogenerated
Результат eZ\Publish\SPI\Persistence\Content\UrlAlias[]
    public function listURLAliasesForLocation($locationId, $custom = false)
    {
        $data = $this->gateway->loadLocationEntries($locationId, $custom);
        foreach ($data as &$entry) {
            $entry['raw_path_data'] = $this->gateway->loadPathData($entry['id']);
        }
        return $this->mapper->extractUrlAliasListFromData($data);
    }