Piwik\Plugin\Manager::checkIsPluginActivated PHP Method

checkIsPluginActivated() public method

Checks whether the given plugin is activated, if not triggers an exception.
public checkIsPluginActivated ( string $pluginName )
$pluginName string
    public function checkIsPluginActivated($pluginName)
    {
        if (!$this->isPluginActivated($pluginName)) {
            throw new PluginDeactivatedException($pluginName);
        }
    }
Manager