Personal.php 453 B

123456789101112131415161718192021
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\WorkflowEngine\Settings;
  8. use OCP\WorkflowEngine\IManager;
  9. class Personal extends ASettings {
  10. public function getScope(): int {
  11. return IManager::SCOPE_USER;
  12. }
  13. public function getSection(): ?string {
  14. return $this->manager->isUserScopeEnabled() ? 'workflow' : null;
  15. }
  16. }