function Memory::__construct

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

Constructs a Memory object.

Parameters

string $name: An arbitrary string. The name of the queue to work with.

File

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

Class

Memory
Static queue implementation.

Namespace

Drupal\Core\Queue

Code

public function __construct($name) {
    $this->queue = [];
    $this->idSequence = 0;
}

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