diff options
author | Joas Schilling <coding@schilljs.com> | 2017-01-19 10:40:11 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-01-19 10:42:22 +0100 |
commit | 17a7eaabcd734c1f989ffc191152d0957195f5d0 (patch) | |
tree | 0037ead5e2f8e8243007a0434a53dedf0902f924 /apps/user_ldap | |
parent | c3985aba70c7a89eeb47cef58b28442055bec4c2 (diff) | |
download | nextcloud-server-17a7eaabcd734c1f989ffc191152d0957195f5d0.tar.gz nextcloud-server-17a7eaabcd734c1f989ffc191152d0957195f5d0.zip |
Add the icons for shipped apps
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/Settings/Section.php | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Settings/Section.php b/apps/user_ldap/lib/Settings/Section.php index 82d8d0c84fa..a4106bacb9e 100644 --- a/apps/user_ldap/lib/Settings/Section.php +++ b/apps/user_ldap/lib/Settings/Section.php @@ -24,13 +24,21 @@ namespace OCA\User_LDAP\Settings; use OCP\IL10N; -use OCP\Settings\ISection; +use OCP\IURLGenerator; +use OCP\Settings\IIconSection; -class Section implements ISection { +class Section implements IIconSection { /** @var IL10N */ private $l; + /** @var IURLGenerator */ + private $url; - public function __construct(IL10N $l) { + /** + * @param IURLGenerator $url + * @param IL10N $l + */ + public function __construct(IURLGenerator $url, IL10N $l) { + $this->url = $url; $this->l = $l; } @@ -64,4 +72,11 @@ class Section implements ISection { public function getPriority() { return 25; } + + /** + * {@inheritdoc} + */ + public function getIcon() { + return $this->url->imagePath('user_ldap', 'app.svg'); + } } |