File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
code_samples/back_office/notifications/src/Notification Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 66
77use Ibexa \Contracts \Core \Repository \Values \Notification \Notification ;
88use Ibexa \Core \Notification \Renderer \NotificationRenderer ;
9+ use Ibexa \Core \Notification \Renderer \TypedNotificationRendererInterface ;
910use Symfony \Component \HttpFoundation \RequestStack ;
1011use Symfony \Component \Routing \RouterInterface ;
1112use 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}
You can’t perform that action at this time.
0 commit comments