Piwik\ArchiveProcessor\PluginsArchiver::shouldProcessReportsForPlugin PHP Method

shouldProcessReportsForPlugin() protected method

Whether the specified plugin's reports should be archived
protected shouldProcessReportsForPlugin ( string $pluginName ) : boolean
$pluginName string
return boolean
    protected function shouldProcessReportsForPlugin($pluginName)
    {
        if ($this->params->getRequestedPlugin() == $pluginName) {
            return true;
        }
        if (Rules::shouldProcessReportsAllPlugins($this->params->getIdSites(), $this->params->getSegment(), $this->params->getPeriod()->getLabel())) {
            return true;
        }
        if (!\Piwik\Plugin\Manager::getInstance()->isPluginLoaded($this->params->getRequestedPlugin())) {
            return true;
        }
        return false;
    }