function Selectable::matching

Select all elements from a selectable that match the expression and return a new collection containing these elements.

Parameters

Criteria $criteria:

Return value

Collection

1 method overrides Selectable::matching()
ArrayCollection::matching in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
Select all elements from a selectable that match the criteria and return a new collection containing these elements.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Selectable.php, line 46

Class

Selectable
Interface for collections that allow efficient filtering with an expression API.

Namespace

Doctrine\Common\Collections

Code

function matching(Criteria $criteria);