getRelatedEntityClass() == AccompanyingPeriod::class; } public function getTemplate() { return 'ChillPersonBundle:AccompanyingPeriod:showInNotification.html.twig'; } public function getTemplateData(Notification $notification) { return ['notification' => $notification]; } }