PluginManager
class PluginManager (View source)
Properties
| protected Plugin[] | $plugins | The list of available plugins.  | 
                |
| protected string[] | $selectedPlugins | The handles of the selected plugins.  | 
                
Methods
                    Plugin[]
                
                
                    getAvailablePlugins()
        
                                            
                
            Get the list of available plugins.
                    bool
                
                
                
            
                    bool
                
                
                
            
                    string[]
                
                
                    getSelectedPlugins()
        
                                            
                
            Get the list of selected (enabled) plugin handles.
                    Plugin[]
                
                
                    getSelectedPluginObjects()
        
                                            
                
            Get the list of selected (enabled) plugin instances.
Details
        
                            
    register(Plugin|string $plugin, string|null $name = null)
        
    
    Register a new plugin, adding it to the list of available plugins.
        
                            Plugin[]
    getAvailablePlugins()
        
    
    Get the list of available plugins.
        
                            bool
    isSelected(Plugin|string $key)
        
    
    Check if a plugin is selected (enabled).
        
                            bool
    isAvailable(Plugin|string $key)
        
    
    Check if a plugin is registered (available).
        
                            string[]
    getSelectedPlugins()
        
    
    Get the list of selected (enabled) plugin handles.
        
                            Plugin[]
    getSelectedPluginObjects()
        
    
    Get the list of selected (enabled) plugin instances.
        
                            
    selectMultiple(mixed $plugins)
        deprecated
    
    deprecated
No description