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

Breadcrumb

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

function CollectionInterface::intersect

Create a new collection with intersecting item between current and given collection.

Parameters

CollectionInterface<T> $other The collection to check for: intersecting items.

Return value

CollectionInterface<T>

Throws

CollectionMismatchException if the compared collections are of differing types.

1 method overrides CollectionInterface::intersect()
AbstractCollection::intersect in vendor/ramsey/collection/src/AbstractCollection.php

File

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

Class

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

Namespace

Ramsey\Collection

Code

public function intersect(CollectionInterface $other) : self;

API Navigation

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