summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-07 11:06:26 +0200
committerGitHub <noreply@github.com>2020-08-07 11:06:26 +0200
commita761e5fef69d32c18fa3bc98ba46035adf538a8c (patch)
treeec95f3350cb28786908c84b07d261bf6344ff535
parenteb2b1bec85fe344a0a0bad57dfd4a744b6fcbd20 (diff)
parent692e6a6838b77fe0e1671147ac1c4796a0f9a67a (diff)
downloadnextcloud-server-a761e5fef69d32c18fa3bc98ba46035adf538a8c.tar.gz
nextcloud-server-a761e5fef69d32c18fa3bc98ba46035adf538a8c.zip
Merge pull request #22137 from nextcloud/enh/noid/file-entity-icon
File entity to implement IIcon
-rw-r--r--apps/workflowengine/lib/Entity/File.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php
index 8daeaae6426..9131caf888a 100644
--- a/apps/workflowengine/lib/Entity/File.php
+++ b/apps/workflowengine/lib/Entity/File.php
@@ -43,12 +43,13 @@ use OCP\SystemTag\ISystemTagManager;
use OCP\SystemTag\MapperEvent;
use OCP\WorkflowEngine\EntityContext\IContextPortation;
use OCP\WorkflowEngine\EntityContext\IDisplayText;
+use OCP\WorkflowEngine\EntityContext\IIcon;
use OCP\WorkflowEngine\EntityContext\IUrl;
use OCP\WorkflowEngine\GenericEntityEvent;
use OCP\WorkflowEngine\IEntity;
use OCP\WorkflowEngine\IRuleMatcher;
-class File implements IEntity, IDisplayText, IUrl, IContextPortation {
+class File implements IEntity, IDisplayText, IUrl, IIcon, IContextPortation {
private const EVENT_NAMESPACE = '\OCP\Files::';
/** @var IL10N */
@@ -270,4 +271,11 @@ class File implements IEntity, IDisplayText, IUrl, IContextPortation {
$this->actingUser = $this->userManager->get($contextIDs['actingUserId']);
}
}
+
+ /**
+ * @inheritDoc
+ */
+ public function getIconUrl(): string {
+ return $this->getIcon();
+ }
}