core/Hook.php
public static function iterate($name)
    {
        $buffer = [];
        foreach (self::trigger($name) as $hook) {
            $buffer = array_merge($buffer, $hook->getIterations());
        }
        
        return $buffer;
    }
public static function iterate($name)
    {
        $buffer = [];
        foreach (self::trigger($name) as $hook) {
            $buffer = array_merge($buffer, $hook->getIterations());
        }
        
        return $buffer;
    }
public static function iterate ( $ name ) { $ buffer = [ ] ; foreach ( self :: trigger ( $ name ) as $ hook ) { $ buffer = array_merge ( $ buffer , $ hook -> getIterations ( ) ) ; } return $ buffer ; }
Get the array output of iteration hooks.

@param string $name The name of the hook to trigger.
@return array
Get the array output of iteration hooks .