Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. QueueInterface.php

function QueueInterface::peek

Retrieves, but does not remove, the head of this queue, or returns `null` if this queue is empty.

Return value

T | null the head of this queue, or `null` if this queue is empty.

See also

self::element()

1 method overrides QueueInterface::peek()
Queue::peek in vendor/ramsey/collection/src/Queue.php

File

vendor/ramsey/collection/src/QueueInterface.php, line 172

Class

QueueInterface
A queue is a collection in which the entities in the collection are kept in order.

Namespace

Ramsey\Collection

Code

public function peek() : mixed;
RSS feed
Powered by Drupal