app['repo.feed-entries']->find($data['entry_id']); if (null === $entry) { return []; } $ret = [ 'text' => $this->app->trans('%user% has published %title%', ['%user%' => $entry->getAuthorName(), '%title%' => '' . $entry->getTitle() . '']) , 'class' => ($unread == 1 ? 'reload_baskets' : '') ]; return $ret; } /** * * @return string */ public function get_name() { return $this->app->trans('Feeds'); } /** * * @return string */ public function get_description() { return $this->app->trans('Receive notification when a publication is available'); } /** * @param integer $usr_id The id of the user to check * * @return boolean */ public function is_available(User $user) { return true; } }