You are here

public function FileInsertHookHandler::__construct in SVG Upload Sanitizer 8

FileInsertHookHandler constructor.

Parameters

\Drupal\svg_upload_sanitizer\Helper\SanitizerHelper $sanitizer_helper: The optimizer helper.

\Drupal\svg_upload_sanitizer\Helper\FileHelper $file_helper: The file helper.

File

src/HookHandler/FileInsertHookHandler.php, line 42

Class

FileInsertHookHandler
Hook handler for the file_insert() hook.

Namespace

Drupal\svg_upload_sanitizer\HookHandler

Code

public function __construct(SanitizerHelper $sanitizer_helper, FileHelper $file_helper) {
  $this->sanitizerHelper = $sanitizer_helper;
  $this->fileHelper = $file_helper;
}