core/console/commands/ImportController.php
public function buildImporterQueue()
    {
        $queue = [];
        foreach (Yii::$app->getApplicationModules() as $id => $module) {
            $response = $module->import($this);
            // if there response is an array, the it will be added to the queue
            if (is_array($response)) {
                foreach ($response as $class) {
                    $object = Yii::createObject($class, [$this, $module]);
                    $position = $object->queueListPosition;
                    while (true) {
                        if (!array_key_exists($position, $queue)) {
                            break;
                        }
                        ++$position;
                    }
                    $queue[$position] = $object;
                }
            }
        }
        
        ksort($queue);
        return $queue;
    }
public function buildImporterQueue()
    {
        $queue = [];
        foreach (Yii::$app->getApplicationModules() as $id => $module) {
            $response = $module->import($this);
            // if there response is an array, the it will be added to the queue
            if (is_array($response)) {
                foreach ($response as $class) {
                    $object = Yii::createObject($class, [$this, $module]);
                    $position = $object->queueListPosition;
                    while (true) {
                        if (!array_key_exists($position, $queue)) {
                            break;
                        }
                        ++$position;
                    }
                    $queue[$position] = $object;
                }
            }
        }
        
        ksort($queue);
        return $queue;
    }
public function buildImporterQueue ( ) { $ queue = [ ] ; foreach ( Yii :: $ app -> getApplicationModules ( ) as $ id => $ module ) { $ response = $ module -> import ( $ this ) ; // if there response is an array, the it will be added to the queue if ( is_array ( $ response ) ) { foreach ( $ response as $ class ) { $ object = Yii :: createObject ( $ class , [ $ this , $ module ] ) ; $ position = $ object -> queueListPosition ; while ( true ) { if ( ! array_key_exists ( $ position , $ queue ) ) { break ; } ++ $ position ; } $ queue [ $ position ] = $ object ; } } } ksort ( $ queue ) ; return $ queue ; }
Get all importer objects with the assigned queue position.

@return array If no importer objects are provided the array will is returned empty.
Get all importer objects with the assigned queue position .