diff options
author | Daniel Rudolf <github.com@daniel-rudolf.de> | 2021-06-30 16:16:05 +0200 |
---|---|---|
committer | Daniel Rudolf <github.com@daniel-rudolf.de> | 2021-06-30 16:20:57 +0200 |
commit | 12059eb65b5f72974aab05f81ded890ebd73daab (patch) | |
tree | 7da1e4baa80a27ccda958beeb8636aa3dc381102 /lib/public/IURLGenerator.php | |
parent | 75f7287b5ed7251599fd6c67ff3ae319f6a3dfc2 (diff) | |
download | nextcloud-server-12059eb65b5f72974aab05f81ded890ebd73daab.tar.gz nextcloud-server-12059eb65b5f72974aab05f81ded890ebd73daab.zip |
Add IUrlGenerator::linkToDefaultPageUrl()
Replaces the deprecated \OC_Util::getDefaultPageUrl() and makes this API public.
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
Diffstat (limited to 'lib/public/IURLGenerator.php')
-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 486ca47d252..89ad4332c2d 100644 --- a/lib/public/IURLGenerator.php +++ b/lib/public/IURLGenerator.php @@ -98,6 +98,14 @@ interface IURLGenerator { public function linkToDocs(string $key): string; /** + * Returns the URL of the default page based on the system configuration + * and the apps visible for the current user + * @return string + * @since 23.0.0 + */ + public function linkToDefaultPageUrl(): string; + + /** * @return string base url of the current request * @since 13.0.0 */ |