public function QueueInterface::createItem in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Queue/QueueInterface.php \Drupal\Core\Queue\QueueInterface::createItem()
Adds a queue item and store it directly to the queue.
Parameters
$data: Arbitrary data to be associated with the new task in the queue.
Return value
A unique ID if the item was successfully created and was (best effort) added to the queue, otherwise FALSE. We don't guarantee the item was committed to disk etc, but as far as we know, the item is now in the queue.
2 methods override QueueInterface::createItem()
- DatabaseQueue::createItem in core/
lib/ Drupal/ Core/ Queue/ DatabaseQueue.php - Adds a queue item and store it directly to the queue.
- Memory::createItem in core/
lib/ Drupal/ Core/ Queue/ Memory.php - Adds a queue item and store it directly to the queue.
File
- core/
lib/ Drupal/ Core/ Queue/ QueueInterface.php, line 32 - Contains \Drupal\Core\Queue\QueueInterface.
Class
- QueueInterface
- Interface for a queue.
Namespace
Drupal\Core\QueueCode
public function createItem($data);