public function MinifyJs::restore in Minify JS 8.2
Remove the minified version of a single file (restore it).
Parameters
object $file: The file to restore.
File
- src/
MinifyJs.php, line 88
Class
- MinifyJs
- Minify JS Service.
Namespace
Drupal\minifyjsCode
public function restore($file) {
$result = $this
->removeMinifiedFile($file, TRUE);
if ($result === TRUE) {
\Drupal::messenger()
->addMessage(t('File was restored successfully.'));
}
else {
\Drupal::messenger()
->addMessage($result, 'error');
}
}