class XsltPolyfill
Methods
Resolve the public URL of the published xslt-polyfill bundle, if it can be served by the configured assets disk.
Read the polyfill version from its package.json, used as a cache-bust query string on the published URL so browsers pick up new versions without waiting for heuristic revalidation.
Details
at
line 23
static string|null
publicUrl(Factory $filesystemFactory)
Resolve the public URL of the published xslt-polyfill bundle, if it can be served by the configured assets disk.
Returns null when the disk has no public URL (e.g. an in-memory test disk), in which case callers should skip the polyfill entirely.
at
line 46
static string|null
findSource()
Locate the vendored xslt-polyfill bundle inside core's js/dist.
The polyfill is copied here from node_modules at `yarn build` time (see the copy-xslt-polyfill script in framework/core/js/package.json), so it ships as part of the published flarum/core package — operators never need to run yarn themselves.
at
line 62
static string|null
version()
Read the polyfill version from its package.json, used as a cache-bust query string on the published URL so browsers pick up new versions without waiting for heuristic revalidation.