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