You are here

svg_upload_sanitizer.module in SVG Upload Sanitizer 8

Contains hook implementations for svg_upload_sanitizer module.

File

svg_upload_sanitizer.module
View source
<?php

/**
 * @file
 * Contains hook implementations for svg_upload_sanitizer module.
 */
use Drupal\file\FileInterface;
use Drupal\svg_upload_sanitizer\HookHandler\FileInsertHookHandler;

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

Functions

Namesort descending Description
svg_upload_sanitizer_file_insert Implements hook_entity_type_insert().