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

Breadcrumb

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

function CollectionInterface::remove

Removes a single instance of the specified element from this collection, if it is present.

Parameters

T $element The element to remove from the collection.:

Return value

bool `true` if an element was removed as a result of this call.

1 method overrides CollectionInterface::remove()
AbstractCollection::remove in vendor/ramsey/collection/src/AbstractCollection.php
Removes a single instance of the specified element from this collection, if it is present.

File

vendor/ramsey/collection/src/CollectionInterface.php, line 84

Class

CollectionInterface
A collection represents a group of values, known as its elements.

Namespace

Ramsey\Collection

Code

public function remove(mixed $element) : bool;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal