You are here

function svg_upload_sanitizer_file_insert in SVG Upload Sanitizer 8

Implements hook_entity_type_insert().

File

./svg_upload_sanitizer.module, line 14
Contains hook implementations for svg_upload_sanitizer module.

Code

function svg_upload_sanitizer_file_insert(FileInterface $file) {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(FileInsertHookHandler::class)
    ->process($file);
}