20 if (
preg_match(
'~[\.-]min\.~', (
string) $event->getParam(
'view'))) {
25 switch ($event->getType()) {
31 $minifier = new \MatthiasMullie\Minify\JS($event->getValue());
32 return $minifier->minify();
38 $minifier = new \MatthiasMullie\Minify\CSS($event->getValue());
39 return $minifier->minify();
__invoke(\Elgg\Event $event)
Minifies simplecache CSS and JS views by handling the 'simplecache:generate' event.
_elgg_services()
Get the global service provider.
Models an event passed to event handlers.