41 lines
849 B
PHP
41 lines
849 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016 F7cloud GmbH and F7cloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCA\Richdocuments\Settings;
|
|
|
|
use OCA\Richdocuments\Service\CapabilitiesService;
|
|
use OCP\IL10N;
|
|
use OCP\IURLGenerator;
|
|
use OCP\Settings\IIconSection;
|
|
|
|
class Section implements IIconSection {
|
|
public function __construct(
|
|
private IURLGenerator $url,
|
|
private CapabilitiesService $capabilitites,
|
|
private IL10N $l10n,
|
|
) {
|
|
}
|
|
|
|
public function getID() {
|
|
return 'richdocuments';
|
|
}
|
|
|
|
public function getName() {
|
|
if ($this->capabilitites->hasF7cloudBranding()) {
|
|
return $this->l10n->t('Office');
|
|
}
|
|
return $this->capabilitites->getProductName();
|
|
}
|
|
|
|
public function getPriority() {
|
|
return 75;
|
|
}
|
|
|
|
public function getIcon() {
|
|
return $this->url->imagePath('richdocuments', 'app-dark.svg');
|
|
}
|
|
}
|