class XsltPolyfill

Methods

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.

static string|null
findSource()

Locate the vendored xslt-polyfill bundle inside core's js/dist.

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.

Details

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.

Parameters

Factory $filesystemFactory

Return Value

string|null

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.

Return Value

string|null

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.

Return Value

string|null