src/storage/BaseFileSystemStorage.php
public function getImagesArray()
    {
        if ($this->_imagesArray === null) {
            $this->_imagesArray = $this->getQueryCacheHelper((new Query())->from('{{%admin_storage_image}}')->select(['id', 'file_id', 'filter_id', 'resolution_width', 'resolution_height'])->indexBy('id'), self::CACHE_KEY_IMAGE);
        }

        return $this->_imagesArray;
    }
public function getImagesArray()
    {
        if ($this->_imagesArray === null) {
            $this->_imagesArray = $this->getQueryCacheHelper((new Query())->from('{{%admin_storage_image}}')->select(['id', 'file_id', 'filter_id', 'resolution_width', 'resolution_height'])->indexBy('id'), self::CACHE_KEY_IMAGE);
        }

        return $this->_imagesArray;
    }
public function getImagesArray ( ) { if ( $ this -> _imagesArray === null ) { $ this -> _imagesArray = $ this -> getQueryCacheHelper ( ( new Query ( ) ) -> from ( '{{%admin_storage_image}}' ) -> select ( [ 'id' , 'file_id' , 'filter_id' , 'resolution_width' , 'resolution_height' ] ) -> indexBy ( 'id' ) , self :: CACHE_KEY_IMAGE ) ; } return $ this -> _imagesArray ; }
Get all storage images as an array from database.

This method is used to retrieve all images from the database and indexed by image key.

@return array An array with all storage images indexed by the image id.
Get all storage images as an array from database .