Package org.craftercms.engine.plugin
Interface PluginService
- All Known Implementing Classes:
PluginServiceImpl
public interface PluginService
Defines operations related to plugin execution
- Since:
- 4.0.0
- Author:
- joseross
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPluginVariables(String url, BiConsumer<String, Object> setter) Adds variables related to plugins if the given URL belongs to a pluginorg.apache.commons.configuration2.HierarchicalConfiguration<?> getPluginConfig(String pluginId) Loads the configuration for a given plugin
-
Method Details
-
getPluginConfig
Loads the configuration for a given plugin- Parameters:
pluginId- the id of the plugin- Returns:
- the configuration object
-
addPluginVariables
Adds variables related to plugins if the given URL belongs to a plugin- Parameters:
url- the URL to checksetter- the setter for the variables
-