From 692e6a6838b77fe0e1671147ac1c4796a0f9a67a Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 7 Aug 2020 00:14:50 +0200 Subject: [PATCH] File entity to implement IIcon Signed-off-by: Arthur Schiwon --- apps/workflowengine/lib/Entity/File.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/workflowengine/lib/Entity/File.php b/apps/workflowengine/lib/Entity/File.php index 8daeaae642..9131caf888 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(); + } }