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

Breadcrumb

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

function DoubleEndedQueueInterface::removeLast

Retrieves and removes the tail of this queue.

This method differs from `pollLast()` only in that it throws an exception if this queue is empty.

Return value

T the last element in this queue.

Throws

NoSuchElementException if this queue is empty.

1 method overrides DoubleEndedQueueInterface::removeLast()
DoubleEndedQueue::removeLast in vendor/ramsey/collection/src/DoubleEndedQueue.php

File

vendor/ramsey/collection/src/DoubleEndedQueueInterface.php, line 256

Class

DoubleEndedQueueInterface
A linear collection that supports element insertion and removal at both ends.

Namespace

Ramsey\Collection

Code

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