Extension:Scribunto/Hooks/ScribuntoExternalLibraryPaths

From Linux Web Expert

Revision as of 10:02, 18 March 2023 by imported>Uzume (gerrit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ScribuntoExternalLibraryPaths
Available from version ??? (Gerrit change 47548)
Modify the list of all paths that libraries can be in for a given engine.
Define function:
public static function onScribuntoExternalLibraryPaths( string $engine, array &$extraLibraryPaths ) { ... }
Attach hook:
$wgHooks['ScribuntoExternalLibraryPaths'][] = 'MyExtensionHooks::onScribuntoExternalLibraryPaths';
Called from:File(s): Scribunto / includes/common/ScribuntoEngineBase.php
Function(s): getLibraryPaths

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:ScribuntoExternalLibraryPaths extensions.

Parameters

  • $engine: A string representing the script engine being used, e.g. 'lua'.
  • &$extraLibraryPaths: An array of strings (string[]), representing the filesystem paths to library files. Will be merged with core library paths.

See also