Piwik\Widget\WidgetConfig::setCategoryId PHP Method

setCategoryId() public method

Set the id of the category the widget belongs to.
public setCategoryId ( string $categoryId ) : static
$categoryId string Usually a translation key, eg 'General_Visits', 'Goals_Goals', ...
return static
    public function setCategoryId($categoryId)
    {
        $this->categoryId = $categoryId;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 public static function configure(WidgetConfig $config)
 {
     $config->setCategoryId('About Piwik');
     $config->setName('Installation_SystemCheck');
     $config->setOrder(16);
     $config->setIsEnabled(Piwik::hasUserSuperUserAccess());
 }
All Usage Examples Of Piwik\Widget\WidgetConfig::setCategoryId