diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-09-08 14:43:14 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-09-08 14:43:14 +0200 |
commit | c5b53785583eb215eb1ec889333ecf25ecb97e66 (patch) | |
tree | 142d208a6260ccba4c1996fe76751e16cde9117a /lib/public | |
parent | 637cff68ac2944d6029eb015640bbbd0e686641b (diff) | |
download | nextcloud-server-c5b53785583eb215eb1ec889333ecf25ecb97e66.tar.gz nextcloud-server-c5b53785583eb215eb1ec889333ecf25ecb97e66.zip |
Add a method to get the absolute url for a route
Fix #10926
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/iurlgenerator.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/iurlgenerator.php b/lib/public/iurlgenerator.php index afdf1b6f299..dbbd8a3bb63 100644 --- a/lib/public/iurlgenerator.php +++ b/lib/public/iurlgenerator.php @@ -43,6 +43,14 @@ interface IURLGenerator { public function linkToRoute($routeName, $arguments = array()); /** + * Returns the absolute URL for a route + * @param string $routeName the name of the route + * @param array $arguments an array with arguments which will be filled into the url + * @return string the absolute url + */ + public function linkToRouteAbsolute($routeName, $arguments = array()); + + /** * Returns an URL for an image or file * @param string $appName the name of the app * @param string $file the name of the file |