mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-30 22:16:14 +00:00
25 lines
610 B
PHP
25 lines
610 B
PHP
<?php
|
|
|
|
namespace Chill\PersonBundle\Notification;
|
|
|
|
use Chill\MainBundle\Entity\Notification;
|
|
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
|
|
|
final class AccompanyingPeriodNotificationRenderer
|
|
{
|
|
public function supports(Notification $notification)
|
|
{
|
|
return $notification->getRelatedEntityClass() == AccompanyingPeriod::class;
|
|
}
|
|
|
|
public function getTemplate()
|
|
{
|
|
return 'ChillPersonBundle:AccompanyingPeriod:showInNotification.html.twig';
|
|
}
|
|
|
|
public function getTemplateData(Notification $notification)
|
|
{
|
|
return ['notification' => $notification];
|
|
}
|
|
}
|