function linkchecker_entity_delete in Link checker 8
Implements hook_entity_delete().
File
- ./
linkchecker.module, line 186 - This module periodically check links in given node types, blocks etc.
Code
function linkchecker_entity_delete(EntityInterface $entity) {
if ($entity instanceof LinkCheckerLinkInterface) {
return;
}
if ($entity instanceof FieldableEntityInterface) {
\Drupal::service('linkchecker.clean_up')
->cleanUpForEntity($entity);
}
}