public function listLocationURLAliases($locationPath, Request $request)
    {
        $locationPathParts = explode('/', $locationPath);

        $location = $this->locationService->loadLocation(
            array_pop($locationPathParts)
        );

        $custom = !($request->query->has('custom') && $request->query->get('custom') === 'false');

        return new Values\CachedValue(
            new Values\URLAliasRefList(
                $this->urlAliasService->listLocationAliases($location, $custom),
                $request->getPathInfo()
            ),
            array('locationId' => $location->id)
        );
    }
public function listLocationURLAliases($locationPath, Request $request)
    {
        $locationPathParts = explode('/', $locationPath);

        $location = $this->locationService->loadLocation(
            array_pop($locationPathParts)
        );

        $custom = !($request->query->has('custom') && $request->query->get('custom') === 'false');

        return new Values\CachedValue(
            new Values\URLAliasRefList(
                $this->urlAliasService->listLocationAliases($location, $custom),
                $request->getPathInfo()
            ),
            array('locationId' => $location->id)
        );
    }
public function listLocationURLAliases ( $ locationPath , Request $ request ) { $ locationPathParts = explode ( '/' , $ locationPath ) ; $ location = $ this -> locationService -> loadLocation ( array_pop ( $ locationPathParts ) ) ; $ custom = ! ( $ request -> query -> has ( 'custom' ) && $ request -> query -> get ( 'custom' ) === 'false' ) ; return new Values \ CachedValue ( new Values \ URLAliasRefList ( $ this -> urlAliasService -> listLocationAliases ( $ location , $ custom ) , $ request -> getPathInfo ( ) ) , array ( 'locationId' => $ location -> id ) ) ; }
Returns the list of URL aliases for a location.

@param $locationPath

@return \eZ\Publish\Core\REST\Server\Values\URLAliasRefList
Returns the list of URL aliases for a location .