public function updateModel(EventInterface $event) {
        $image = $event->getArgument('image');

        if ($image->hasBeenTransformed()) {
            $image->setBlob($this->imagick->getImageBlob());
        }
    }
public function updateModel(EventInterface $event) {
        $image = $event->getArgument('image');

        if ($image->hasBeenTransformed()) {
            $image->setBlob($this->imagick->getImageBlob());
        }
    }
public function updateModel ( EventInterface $ event ) { $ image = $ event -> getArgument ( 'image' ) ; if ( $ image -> hasBeenTransformed ( ) ) { $ image -> setBlob ( $ this -> imagick -> getImageBlob ( ) ) ; } }
Update the model data if the image has been changed

@param EventInterface $event The event instance
Update the model data if the image has been changed