src/aws/FlowActiveWindow.php
public function callbackRemove($imageId)
    {
        $image = Yii::$app->storage->getImage($imageId);
        
        if ($image) {
            $this->model->flowDeleteImage($image);
            if (Storage::removeImage($image->id, true)) {
                return $this->sendSuccess('image has been removed');
            }
        }
        
        return $this->sendError('Unable to remove this image');
    }
public function callbackRemove($imageId)
    {
        $image = Yii::$app->storage->getImage($imageId);
        
        if ($image) {
            $this->model->flowDeleteImage($image);
            if (Storage::removeImage($image->id, true)) {
                return $this->sendSuccess('image has been removed');
            }
        }
        
        return $this->sendError('Unable to remove this image');
    }
public function callbackRemove ( $ imageId ) { $ image = Yii :: $ app -> storage -> getImage ( $ imageId ) ; if ( $ image ) { $ this -> model -> flowDeleteImage ( $ image ) ; if ( Storage :: removeImage ( $ image -> id , true ) ) { return $ this -> sendSuccess ( 'image has been removed' ) ; } } return $ this -> sendError ( 'Unable to remove this image' ) ; }
Remove a given image from the collection.

@param integer $imageId
@return array
Remove a given image from the collection .