2020-01-28 06:38:11 -05:00
|
|
|
<?php
|
2020-03-31 04:49:10 -04:00
|
|
|
|
2020-01-28 06:38:11 -05:00
|
|
|
declare(strict_types=1);
|
2020-03-31 04:49:10 -04:00
|
|
|
|
2020-01-28 06:38:11 -05:00
|
|
|
/**
|
2024-06-03 04:23:34 -04:00
|
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-01-28 06:38:11 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCA\Settings\Sections\Admin;
|
|
|
|
|
|
|
|
|
|
use OCP\IL10N;
|
|
|
|
|
use OCP\IURLGenerator;
|
|
|
|
|
use OCP\Settings\IIconSection;
|
|
|
|
|
|
|
|
|
|
class Server implements IIconSection {
|
|
|
|
|
|
2024-10-18 06:04:22 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private IL10N $l,
|
|
|
|
|
private IURLGenerator $urlGenerator,
|
|
|
|
|
) {
|
2020-01-28 06:38:11 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getIcon(): string {
|
|
|
|
|
return $this->urlGenerator->imagePath('core', 'actions/settings-dark.svg');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getID(): string {
|
|
|
|
|
return 'server';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getName(): string {
|
|
|
|
|
return $this->l->t('Basic settings');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getPriority(): int {
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|