Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Linnik <sergey.linnik@onlyoffice.com>2017-12-27 14:24:41 +0300
committerSergey Linnik <sergey.linnik@onlyoffice.com>2017-12-27 14:28:01 +0300
commit99c4528ef1c151fe3c265a4870dd5eb4757716ed (patch)
treee2188e59e0d6296856fcb8ab41c6bc4e65ee479a /lib/adminsection.php
parent3b7c50626e7d74485b6f5c65ced84aa4e6ec2ae9 (diff)
icon in setting section
Diffstat (limited to 'lib/adminsection.php')
-rw-r--r--lib/adminsection.php23
1 files changed, 20 insertions, 3 deletions
diff --git a/lib/adminsection.php b/lib/adminsection.php
index ae66feb..e79ed98 100644
--- a/lib/adminsection.php
+++ b/lib/adminsection.php
@@ -26,18 +26,35 @@
namespace OCA\Onlyoffice;
-use OCP\Settings\ISection;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
/**
* Settings section for the administration page
*/
-class AdminSection implements ISection {
+class AdminSection implements IIconSection {
- public function __construct() {
+ /** @var IURLGenerator */
+ private $urlGenerator;
+
+ /**
+ * @param IURLGenerator $urlGenerator - url generator service
+ */
+ public function __construct(IURLGenerator $urlGenerator) {
+ $this->urlGenerator = $urlGenerator;
}
/**
+ * Path to an 16*16 icons
+ *
+ * @return strings
+ */
+ public function getIcon() {
+ return $this->urlGenerator->imagePath("onlyoffice", "app-dark.svg");
+ }
+
+ /**
* ID of the section
*
* @returns string