Skip to content
Snippets Groups Projects
Commit d82c0488 authored by Joseph Olstad's avatar Joseph Olstad
Browse files

Issue #3472120 by liam morland, joseph.olstad: Remove calls to file_validate() which is deprecated

parent 60bf7ea0
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,8 @@ protected function validateFile(MediaInterface $media) {
];
}
}
return file_validate($item->entity, $validators);
$file_validator = \Drupal::service('file.validator');
return $file_validator->file_validate($item->entity, $validators);
}
/**
......
......@@ -198,7 +198,8 @@ function wxt_ext_media_validate_upload(FileInterface $file, array $bundles = [])
];
}
}
return file_validate($file, $validators);
$file_validator = \Drupal::service('file.validator');
return $file_validator->file_validate($file, $validators);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment