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