function Memory::numberOfItems

Same name in other branches
  1. 9 core/lib/Drupal/Core/Queue/Memory.php \Drupal\Core\Queue\Memory::numberOfItems()
  2. 10 core/lib/Drupal/Core/Queue/Memory.php \Drupal\Core\Queue\Memory::numberOfItems()
  3. 11.x core/lib/Drupal/Core/Queue/Memory.php \Drupal\Core\Queue\Memory::numberOfItems()

Overrides QueueInterface::numberOfItems

File

core/lib/Drupal/Core/Queue/Memory.php, line 56

Class

Memory
Static queue implementation.

Namespace

Drupal\Core\Queue

Code

public function numberOfItems() {
    return count($this->queue);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.