You are here

function background_image_entity_delete in Background Image 8

Same name and namespace in other branches
  1. 2.x background_image.module \background_image_entity_delete()
  2. 2.0.x background_image.module \background_image_entity_delete()

Implements hook_entity_delete().

File

./background_image.module, line 43
Background Image module's procedural hooks and functions.

Code

function background_image_entity_delete(EntityInterface $entity) {
  if ($background_image = BackgroundImageManager::service()
    ->getEntityBackgroundImage($entity)) {
    $background_image
      ->delete();
  }
}