public function FileManager::minify in Minify JS 8.2
Same name and namespace in other branches
- 8 src/Controller/FileManager.php \Drupal\minifyjs\Controller\FileManager::minify()
Minify a single file.
Parameters
object $file: The file to minify.
Return value
\Symfony\Component\HttpFoundation\RedirectResponse Returns a redirect to the manage javascript page.
1 string reference to 'FileManager::minify'
File
- src/
Controller/ FileManager.php, line 21
Class
- FileManager
- Controller routines for minifyjs routes.
Namespace
Drupal\minifyjs\ControllerCode
public function minify($file) {
\Drupal::service('minifyjs')
->minify($file);
return $this
->redirect('minifyjs.manage');
}