public function ServiceBase::isPluginEnabled in Purge 8.3
Find out whether the given plugin_id is enabled.
Parameters
string $plugin_id: The plugin_id of the plugin you want to check for.
Return value
bool Whether the plugin is enabled.
Overrides ServiceInterface::isPluginEnabled
File
- src/
ServiceBase.php, line 56
Class
- ServiceBase
- Provides a generic service for all DIC-registered service classes by Purge.
Namespace
Drupal\purgeCode
public function isPluginEnabled($plugin_id) {
return in_array($plugin_id, $this
->getPluginsEnabled());
}