Skip to content

Commit f24589f

Browse files
authored
Update MyRenderer.php
1 parent b52a111 commit f24589f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 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\Routing\RouterInterface;
1011
use Twig\Environment;
1112

@@ -37,4 +38,16 @@ public function generateUrl(Notification $notification): ?string
3738

3839
return null;
3940
}
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+
}
4053
}

0 commit comments

Comments
 (0)