1 filter.module | filter_entity_insert(EntityInterface $entity) |
Implements hook_entity_insert().
File
- core/
modules/ filter/ filter.module, line 1723 - Framework for handling the filtering of content.
Code
function filter_entity_insert(EntityInterface $entity) {
$referenced_files_by_field = _filter_get_file_ids_by_field($entity);
foreach ($referenced_files_by_field as $field => $fids) {
_filter_record_file_usage($fids, $entity);
}
}