Extension:Scribunto/Hooks/ScribuntoExternalLibraryPaths

From MediaWiki.org
Jump to navigation Jump to search
ScribuntoExternalLibraryPaths
Available from version ???
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 / extensions/Scribunto/includes/common/Base.php

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

Parameters:

  • string $engine The script engine being used, e.g. 'lua'.
  • string[] &$extraPaths The array of filesystem paths to library files. Will be merged with core library paths.

See also[edit]