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

Breadcrumb

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

function DoubleEndedQueue::removeFirst

Return value

T the first element in this queue.

Throws

NoSuchElementException if the queue is empty

Overrides DoubleEndedQueueInterface::removeFirst

File

vendor/ramsey/collection/src/DoubleEndedQueue.php, line 90

Class

DoubleEndedQueue
This class provides a basic implementation of `DoubleEndedQueueInterface`, to minimize the effort required to implement this interface.

Namespace

Ramsey\Collection

Code

public function removeFirst() : mixed {
    return $this->remove();
}
RSS feed
Powered by Drupal