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

Breadcrumb

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

function DoubleEndedQueue::addLast

Throws

InvalidArgumentException if $element is of the wrong type

Overrides DoubleEndedQueueInterface::addLast

File

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

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 addLast(mixed $element) : bool {
    return $this->add($element);
}
RSS feed
Powered by Drupal