nextcloud/apps/workflowengine/lib/Settings/Section.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
905 B
PHP
Raw Permalink Normal View History

2016-08-19 11:44:24 -04:00
<?php
2016-08-19 11:44:24 -04:00
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
2016-08-19 11:44:24 -04:00
*/
namespace OCA\WorkflowEngine\Settings;
use OCA\WorkflowEngine\AppInfo\Application;
2016-08-19 11:44:24 -04:00
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
2016-08-19 11:44:24 -04:00
class Section implements IIconSection {
/**
* @param IURLGenerator $url
* @param IL10N $l
*/
public function __construct(
private readonly IURLGenerator $url,
private readonly IL10N $l,
) {
2016-08-19 11:44:24 -04:00
}
/**
* {@inheritdoc}
*/
public function getID(): string {
2016-08-19 11:44:24 -04:00
return 'workflow';
}
/**
* {@inheritdoc}
*/
public function getName(): string {
return $this->l->t('Flow');
2016-08-19 11:44:24 -04:00
}
/**
* {@inheritdoc}
*/
public function getPriority(): int {
2016-08-19 11:44:24 -04:00
return 55;
}
/**
* {@inheritdoc}
*/
public function getIcon(): string {
return $this->url->imagePath(Application::APP_ID, 'app-dark.svg');
}
2016-08-19 11:44:24 -04:00
}