media_watermark.install in Media watermark 8
Same filename and directory in other branches
Media Watermark install file.
File
media_watermark.installView source
<?php
use Drupal\image\Entity\ImageStyle;
/**
* @file
* Media Watermark install file.
*/
/**
* Implements hook_uninstall().
*/
function media_watermark_uninstall() {
// Remove media_watermark image style to prevent error on next module turn on.
$image_style = ImageStyle::load('media_watermark');
$image_style
->delete();
}
Functions
Name | Description |
---|---|
media_watermark_uninstall | Implements hook_uninstall(). |