'; $html .= ''; $src = Url::getFromRoute('/transformation/wrapper', $options['wrapper_params']); } $html .= ''
            . __('Image preview here') . ''; $html .= '
'; return $html; } /** * Returns the array of scripts (filename) required for plugin * initialization and handling * * @return array javascripts to be included */ public function getScripts() { return ['transformations/image_upload.js']; } /* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */ /** * Gets the transformation name of the specific plugin * * @return string */ public static function getName() { return 'Image upload'; } }