Piwik\Widget\WidgetConfig::isEnabled PHP Method

isEnabled() public method

Defines whether a widget is enabled or not. For instance some widgets might not be available to every user or might depend on a setting (such as Ecommerce) of a site. In such a case you can perform any checks and then return true or false. If your report is only available to users having super user access you can do the following: return Piwik::hasUserSuperUserAccess();
public isEnabled ( ) : boolean
return boolean
    public function isEnabled()
    {
        return $this->isEnabled;
    }