PluginManager
extends AbstractPluginManager
in package
VuFind Config Manager
Tags
Table of Contents
- __construct() : mixed
- Constructor
- reload() : Config
- Reload a configuration and return the new version
- validate() : void
- Validate the plugin
Methods
__construct()
Constructor
public
__construct([mixed $configOrContainerInstance = null ][, array<string|int, mixed> $v3config = [] ]) : mixed
Make sure plugins are properly initialized.
Parameters
- $configOrContainerInstance : mixed = null
-
Configuration or container instance
- $v3config : array<string|int, mixed> = []
-
If $configOrContainerInstance is a container, this value will be passed to the parent constructor.
Return values
mixed —reload()
Reload a configuration and return the new version
public
reload(string $id) : Config
Parameters
- $id : string
-
Service identifier
Return values
Config —validate()
Validate the plugin
public
validate(mixed $plugin) : void
Checks that the filter loaded is either a valid callback or an instance of FilterInterface.
Parameters
- $plugin : mixed
-
Plugin to validate