mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 19:49:38 -04:00
The diff can be checked using: git diff --ignore-all-space --ignore-blank-lines To see only the changes not related to blank lines. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
43 lines
766 B
PHP
43 lines
766 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2020 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 Sharing implements IIconSection {
|
|
|
|
public function __construct(
|
|
private IL10N $l,
|
|
private IURLGenerator $urlGenerator,
|
|
) {
|
|
}
|
|
|
|
#[\Override]
|
|
public function getIcon(): string {
|
|
return $this->urlGenerator->imagePath('core', 'actions/share.svg');
|
|
}
|
|
|
|
#[\Override]
|
|
public function getID(): string {
|
|
return 'sharing';
|
|
}
|
|
|
|
#[\Override]
|
|
public function getName(): string {
|
|
return $this->l->t('Sharing');
|
|
}
|
|
|
|
#[\Override]
|
|
public function getPriority(): int {
|
|
return 5;
|
|
}
|
|
}
|