/** * Get the available actions for the notification * * @return array */ public function getActions($email = false) { switch ($this->type) { case Events::TEAM_INVITE: return array($email ? 'Accept invitation' : 'Accept' => $this->event->getInvitation()->getUrl('accept', $email)); default: return array(); } }