FileActivitySettings.php 574 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\Activity\Settings;
  8. use OCP\Activity\ActivitySettings;
  9. use OCP\IL10N;
  10. abstract class FileActivitySettings 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 'files';
  21. }
  22. public function getGroupName() {
  23. return $this->l->t('Files');
  24. }
  25. }