]> source.dussan.org Git - nextcloud-server.git/commitdiff
File entity to implement IIcon 22137/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 6 Aug 2020 22:14:50 +0000 (00:14 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 6 Aug 2020 22:14:50 +0000 (00:14 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/workflowengine/lib/Entity/File.php

index 8daeaae64260ddb8d374d6b5f69297cca634ace8..9131caf888a7a77acef16a9bc19aa715894cff95 100644 (file)
@@ -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();
+       }
 }