notificaiton: improve NotificationHandlerInterface + mark notification

as unread if a comment is appended
This commit is contained in:
2022-01-04 19:02:03 +01:00
parent ebc6d21ba6
commit 4ef024516c
5 changed files with 40 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ interface NotificationHandlerInterface
/**
* Return the template path (twig file).
*/
public function getTemplate(array $options = []): string;
public function getTemplate(Notification $notification, array $options = []): string;
/**
* Return an array which will be passed as data for the template.