- Issue created by @bedstvie
Added hook that alters the image URL for the Watermark effect.
/**
* Alter the image of a Watermark effect.
*
* @param string $uri
* The uri string to be altered.
* @param \Drupal\image\ConfigurableImageEffectBase $image_effect
* The Watermark image effect plugin for which text need to be altered.
*/
function hook_image_effects_watermark_uri_alter(&$uri, ConfigurableImageEffectBase $image_effect) {
// Skip if the effect is not WatermarkImageEffect or an alternative
// implementation.
if ($image_effect->getPluginId() !== "image_effects_watermark") {
return;
}
$uri = 'my altered uri';
}
Active
3.6
Code