You are here

static function FavoriteStorage::getFavorites in Favorites 8.2

*

2 calls to FavoriteStorage::getFavorites()
FavBlock::build in src/Plugin/Block/FavBlock.php
Builds and returns the renderable array for this block plugin.
MyFavController::addFavJS in src/Controller/MyFavController.php
Add a favorite.

File

src/FavoriteStorage.php, line 24
Contains \Drupal\favorites\FavoriteStorage.

Class

FavoriteStorage

Namespace

Drupal\favorites

Code

static function getFavorites($uid) {
  $result = db_query('select * from {favorites} where uid = :uip order by timestamp DESC', array(
    ':uip' => $uid,
  ));
  return $result;
}