Skip to content

Commit 0333d4f

Browse files
authored
Update ListRenderer.php
1 parent f24589f commit 0333d4f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

code_samples/back_office/notifications/src/Notification/ListRenderer.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use Ibexa\Contracts\Core\Repository\Values\Notification\Notification;
88
use Ibexa\Core\Notification\Renderer\NotificationRenderer;
9+
use Ibexa\Core\Notification\Renderer\TypedNotificationRendererInterface;
910
use Symfony\Component\HttpFoundation\RequestStack;
1011
use Symfony\Component\Routing\RouterInterface;
1112
use Twig\Environment;
@@ -49,4 +50,14 @@ public function generateUrl(Notification $notification): ?string
4950

5051
return null;
5152
}
53+
54+
public function getTypeLabel(): string
55+
{
56+
return /** @Desc("Workflow stage changed") */
57+
$this->translator->trans(
58+
'workflow.notification.stage_change.label',
59+
[],
60+
'ibexa_workflow'
61+
);
62+
}
5263
}

0 commit comments

Comments
 (0)