diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-09-29 13:54:17 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-09-29 14:56:07 +0200 |
commit | 35b53ecd404a74edea3c6866e451c4819bdc9ea8 (patch) | |
tree | dac46834d8fa7ec0122243f94604c3d2215b4d22 /lib/Settings/AdminSection.php | |
parent | d6d169be15913404f99b86c39a03bc71942c9f77 (diff) |
OPML export command and fixes
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Settings/AdminSection.php')
-rw-r--r-- | lib/Settings/AdminSection.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/Settings/AdminSection.php b/lib/Settings/AdminSection.php new file mode 100644 index 000000000..f92c9a8a4 --- /dev/null +++ b/lib/Settings/AdminSection.php @@ -0,0 +1,39 @@ +<?php + +namespace OCA\News\Settings; + +use OCP\IL10N; +use OCP\IURLGenerator; +use OCP\Settings\IIconSection; + +class AdminSection implements IIconSection +{ + private $l; + private $url; + + public function __construct(IURLGenerator $url, IL10N $l) + { + $this->url = $url; + $this->l = $l; + } + + public function getID() + { + return 'news'; + } + + public function getName() + { + return $this->l->t('News'); + } + + public function getPriority() + { + return 10; + } + + public function getIcon() + { + return $this->url->imagePath('news', 'app-dark.svg'); + } +} |