You are here

function xautoload_InjectedAPI_hookXautoload::prefixHandler in X Autoload 7.2

Same name and namespace in other branches
  1. 7.5 legacy/lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::prefixHandler()
  2. 7.3 lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::prefixHandler()
  3. 7.4 legacy/lib/InjectedAPI/hookXautoload.php \xautoload_InjectedAPI_hookXautoload::prefixHandler()

Legacy: Plugins were called "Handler" before.

File

lib/InjectedAPI/hookXautoload.php, line 103

Class

xautoload_InjectedAPI_hookXautoload
An instance of this class is passed around to implementations of hook_xautoload().

Code

function prefixHandler($prefix, $plugin) {
  $this->finder
    ->registerPrefixPlugin($prefix, $plugin);
}