You are here

public static function QueueItem::load in Little helpers 7

Same name and namespace in other branches
  1. 7.2 src/System/QueueItem.php \Drupal\little_helpers\System\QueueItem::load()

File

src/System/QueueItem.php, line 14

Class

QueueItem

Namespace

Drupal\little_helpers\System

Code

public static function load($id) {
  if ($item = db_query('SELECT * FROM {queue} WHERE item_id=:id', array(
    ':id' => $id,
  ))
    ->fetch()) {
    return new static($item);
  }
}