app->trans('notification:: subtitle "%langues%" generated for "%title%" !', ['%title%' => $data['title'], '%langues%' => $data['langues']]); return [ 'text' => $text, 'class' => ($unread == 1 ? 'reload_baskets' : '') ]; } /** * * @return string */ public function get_name() { return $this->app->trans('notification:: subtitle'); } /** * * @return string */ public function get_description() { return $this->app->trans('notification:: Receive notification when subtitle generated'); } /** * @param integer $usr_id The id of the user to check * * @return boolean */ public function is_available(User $user) { return true; } }