Add getPlugins method to plugin manager.