SilverStripe\Assets\File::collateDescendants
Collate selected descendants of this page.
$condition will be evaluated on each descendant, and if it is succeeds, that item will be added to the $collator array.
Signature
public function collateDescendants(string
$condition,
array&
$collator )
Parameters
$condition
— string- The PHP condition to be evaluated. The page will be called $item
$collator
— array- An array, passed by reference, to collect all of the matching descendants.
Returns
- true|null