function Memory::numberOfItems

Same name in other branches
  1. 8.9.x 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 57

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.