Created
January 4, 2016 10:41
-
-
Save vojtasvoboda/e73310fbe17de4da0691 to your computer and use it in GitHub Desktop.
Is plugin active condition in OctoberCMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use System\Classes\PluginManager; | |
protected function isPluginActive($pluginName) | |
{ | |
$pluginManager = PluginManager::instance(); | |
return array_key_exists($pluginName, $pluginManager->getPlugins()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment