pluginFunctionIndexFor
function pluginFunctionIndexFor(qualifiedName): number;Defined in: packages/engine/src/vm/VMBuiltins.ts:1459
The stable index for a package’s named plugin function, allocated once per
${packageName}:${functionName} and cached process-wide, so the same function
always maps to the same pluginFunctionRegistry slot no matter which
engine registers it or in what order: the property compiled bytecode, and so
a snapshot, relies on.
The engine calls this at ExpressionEngine.registerPackage time for each
entry of a package’s pluginFunctions record, so a package author names the
function and never sees an index. allocatePluginFunctionIndex remains
for a host that needs a raw index directly.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
qualifiedName | string |
Returns
Section titled “Returns”number