You are here

function skinr_test_entity_delete in Skinr 8.2

Implements hook_entity_delete().

File

tests/modules/skinr_test/skinr_test.module, line 185
Skinr testing module.

Code

function skinr_test_entity_delete(Drupal\Core\Entity\EntityInterface $entity) {
  if ($entity
    ->getEntityTypeId() !== 'skin') {
    return;
  }
  $_SESSION['skinr_test'][] = __FUNCTION__ . ' called';
}