ShareActivitySettings.php 587 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\Files_Sharing\Activity\Settings;
  8. use OCP\Activity\ActivitySettings;
  9. use OCP\IL10N;
  10. abstract class ShareActivitySettings extends ActivitySettings {
  11. /** @var IL10N */
  12. protected $l;
  13. /**
  14. * @param IL10N $l
  15. */
  16. public function __construct(IL10N $l) {
  17. $this->l = $l;
  18. }
  19. public function getGroupIdentifier() {
  20. return 'sharing';
  21. }
  22. public function getGroupName() {
  23. return $this->l->t('Sharing');
  24. }
  25. }