nextcloud/apps/settings/lib/Sections/Admin/Presets.php
Ferdinand Thiessen e266543d67 fix(settings): rename "Settings presets" to "Quick presets"
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-09-12 14:53:16 +02:00

38 lines
723 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Settings\Sections\Admin;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class Presets implements IIconSection {
public function __construct(
private IL10N $l,
private IURLGenerator $urlGenerator,
) {
}
public function getIcon(): string {
return $this->urlGenerator->imagePath('settings', 'library_add_check.svg');
}
public function getID(): string {
return 'presets';
}
public function getName(): string {
return $this->l->t('Quick presets');
}
public function getPriority(): int {
return 0;
}
}