name() ); } /** * Get the invitation email body. */ public function get_invitation_body( \WebCalendar\Core\Domain\Entity\Event $event, \WebCalendar\Core\Domain\Entity\User $user ): string { return sprintf( // translators: 1: user first name, 2: event title, 3: event time, 4: event location, 5: event description. __( 'Hello %1$s, You have been invited to the following event: Title: %2$s Time: %3$s Location: %4$s Description: %5$s Please log in to your calendar to accept or reject this invitation.', 'agenticdaisy-calendar' ), $user->firstName(), $event->name(), $event->start()->format( 'Y-m-d H:i' ), $event->location(), $event->description() ); } }