public function run(\Elgg\Upgrade\Result $result, $offset) { $groups = elgg_get_entities(['types' => 'group', 'offset' => $offset, 'limit' => 10]); foreach ($groups as $group) { $result = $this->transferIcons($group, $result); } return $result; }