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

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

52 lines
857 B
PHP
Raw Normal View History

2016-08-19 11:44:24 -04:00
<?php
/**
* 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 IURLGenerator $url,
private IL10N $l,
) {
2016-08-19 11:44:24 -04:00
}
/**
* {@inheritdoc}
*/
public function getID() {
return 'workflow';
}
/**
* {@inheritdoc}
*/
public function getName() {
return $this->l->t('Flow');
2016-08-19 11:44:24 -04:00
}
/**
* {@inheritdoc}
*/
public function getPriority() {
return 55;
}
/**
* {@inheritdoc}
*/
public function getIcon() {
return $this->url->imagePath(Application::APP_ID, 'app-dark.svg');
}
2016-08-19 11:44:24 -04:00
}