You are here

public function SystemSetQueue::numberOfItems in Queue Unique 7.2

Same name and namespace in other branches
  1. 7 src/Queue/SystemSetQueue.php \Drupal\queue_unique\Queue\SystemSetQueue::numberOfItems()

File

src/Queue/SystemSetQueue.php, line 56
Contains \Drupal\queue_unique\Queue\SystemSetQueue

Class

SystemSetQueue

Namespace

Drupal\queue_unique\Queue

Code

public function numberOfItems() {
  return db_query('SELECT COUNT(item_id) FROM {' . static::TABLE_NAME . '} WHERE name = :name', array(
    ':name' => $this->name,
  ))
    ->fetchField();
}