function simplifying_entity_delete in Simplifying 8
Implements hook_entity_delete().
File
- ./
simplifying.module, line 100 - Simplifying module.
Code
function simplifying_entity_delete(EntityInterface $entity) {
\Drupal::service('simplifying.toolbar')
->entityDelete($entity
->getEntityTypeId(), $entity
->bundle(), $entity
->id());
}