Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / consolidation / robo / src / Collection / loadTasks.php
1 <?php
2 namespace Robo\Collection;
3
4 trait loadTasks
5 {
6     /**
7      * Run a callback function on each item in a collection
8      *
9      * @param array $collection
10      *
11      * @return \Robo\Collection\TaskForEach|\Robo\Collection\CollectionBuilder
12      */
13     protected function taskForEach($collection = [])
14     {
15         return $this->task(TaskForEach::class, $collection);
16     }
17 }