We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b52a111 commit f24589fCopy full SHA for f24589f
code_samples/back_office/notifications/src/Notification/MyRenderer.php
@@ -6,6 +6,7 @@
6
7
use Ibexa\Contracts\Core\Repository\Values\Notification\Notification;
8
use Ibexa\Core\Notification\Renderer\NotificationRenderer;
9
+use Ibexa\Core\Notification\Renderer\TypedNotificationRendererInterface;
10
use Symfony\Component\Routing\RouterInterface;
11
use Twig\Environment;
12
@@ -37,4 +38,16 @@ public function generateUrl(Notification $notification): ?string
37
38
39
return null;
40
}
41
+
42
+ }
43
44
+ public function getTypeLabel(): string
45
+ {
46
+ return /** @Desc("Workflow stage changed") */
47
+ $this->translator->trans(
48
+ 'workflow.notification.stage_change.label',
49
+ [],
50
+ 'ibexa_workflow'
51
+ );
52
53
0 commit comments