app->trans('notification:: Sharing basket "%name%"...', ['%name%' => $data['name']]); } else { $text = $this->app->trans('notification:: Basket %name% is shared', ['%name%' => $data['name']]); } } $ret = [ 'text' => $text, 'class' => ($unread == 1 ? 'reload_baskets' : '') ]; return $ret; } /** * * @return string */ public function get_name() { return $this->app->trans('notification:: Basket WIP'); } /** * * @return string */ public function get_description() { return $this->app->trans('notification:: Receive notification when a basket is WIP'); } /** * @param integer $usr_id The id of the user to check * * @return boolean */ public function is_available(User $user) { return true; } }