public static function createArrayIterator(array $data, $langContext, $with, $preloadModels = false)
    {
        return (new QueryIteratorFilter(new QueryIterator(['data' => $data, 'lang' => $langContext, 'with' => $with, 'preloadModels' => $preloadModels])));
    }
public static function createArrayIterator(array $data, $langContext, $with, $preloadModels = false)
    {
        return (new QueryIteratorFilter(new QueryIterator(['data' => $data, 'lang' => $langContext, 'with' => $with, 'preloadModels' => $preloadModels])));
    }
public static function createArrayIterator ( array $ data , $ langContext , $ with , $ preloadModels = false ) { return ( new QueryIteratorFilter ( new QueryIterator ( [ 'data' => $ data , 'lang' => $ langContext , 'with' => $ with , 'preloadModels' => $ preloadModels ] ) ) ) ; }
Static method to create an iterator object based on the provided array data with
optional language context.

@param array $data The filtere results where the iterator object should be created with
@param string $langContext The language short code context, if any.
@param integer $preloadModels Whether the models should be preload or not.
@return \luya\cms\menu\QueryIterator
Static method to create an iterator object based on the provided array data with optional language context .