1 filter.module filter_entity_delete(EntityInterface $entity)

Implements hook_entity_delete().

File

core/modules/filter/filter.module, line 1763
Framework for handling the filtering of content.

Code

function filter_entity_delete(EntityInterface $entity) {
  $referenced_files_by_field = _filter_get_file_ids_by_field($entity);
  foreach ($referenced_files_by_field as $field => $fids) {
    _filter_delete_file_usage($fids, $entity, 0);
  }
}