ProCacheMinifyHTML::setJSMinifyFunction() method

Set the javascript minify callback function

Given function will receive JS string as first argument, and it should return the minified JS.

Usage

$min->setJSMinifyFunction(callable $func);

Arguments

NameType(s)Description
$funccallable

Return value

$this

Object instance it was called from (method supports fluent interface).

Exceptions

Method can throw exceptions on error:

  • \Exception


$min methods and properties

API reference based on ProcessWire core version 3.0.252