File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
back_office/notifications/src/Notification Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,21 @@ public function render(Notification $notification): string
3232 if ($ currentRequest && $ currentRequest ->attributes ->getBoolean ('render_all ' )) {
3333 $ templateToExtend = '@ibexadesign/account/notifications/list_item_all.html.twig ' ;
3434 }
35+
3536 return $ this ->twig ->render ('@ibexadesign/notification.html.twig ' , [
3637 'notification ' => $ notification ,
3738 'template_to_extend ' => $ templateToExtend ,
3839 ]);
3940 }
40-
41+
4142 public function generateUrl (Notification $ notification ): ?string
4243 {
4344 if (array_key_exists ('content_id ' , $ notification ->data )) {
4445 return $ this ->router ->generate ('ibexa.content.view ' , [
4546 'contentId ' => $ notification ->data ['content_id ' ],
4647 ]);
4748 }
49+
4850 return null ;
4951 }
5052}
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5- use DateTimeImmutable ;
6- use Ibexa \Contracts \Core \Repository \Values \Notification \Query \Criterion ;
75use Ibexa \Contracts \Core \Repository \Values \NotificationQuery ;
86
97$ repository = $ this ->getRepository ();
You can’t perform that action at this time.
0 commit comments