|
|
|
|
@ -24,13 +24,21 @@ |
|
|
|
|
namespace OCA\Files_External\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 10; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* {@inheritdoc} |
|
|
|
|
*/ |
|
|
|
|
public function getIcon() { |
|
|
|
|
return $this->url->imagePath('files_external', 'app-dark.svg'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|