Piwik\Widget\WidgetConfig::setCategoryId PHP Метод

setCategoryId() публичный Метод

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', ...
Результат static
    public function setCategoryId($categoryId)
    {
        $this->categoryId = $categoryId;
        return $this;
    }

Usage Example

Пример #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