protected function triggerBeforeSaveHook($image)
    {
        if (isset($this->uploadFieldOptions['before_save'])) {
            $this->triggerHook($this->uploadFieldOptions['before_save'], $image);
        }

        return $this;
    }
protected function triggerBeforeSaveHook($image)
    {
        if (isset($this->uploadFieldOptions['before_save'])) {
            $this->triggerHook($this->uploadFieldOptions['before_save'], $image);
        }

        return $this;
    }
protected function triggerBeforeSaveHook ( $ image ) { if ( isset ( $ this -> uploadFieldOptions [ 'before_save' ] ) ) { $ this -> triggerHook ( $ this -> uploadFieldOptions [ 'before_save' ] , $ image ) ; } return $ this ; }
Trigger user defined before save hook.

@param $image

@return $this
@throws \Exception
Trigger user defined before save hook .