Piwik\Widget\WidgetConfig::setSubcategoryId PHP Method

setSubcategoryId() public method

Set the id of the subcategory the widget belongs to. If a subcategory is specified, the widget will be shown in the Piwik reporting UI. The subcategoryId will be used as a translation key for the submenu item.
public setSubcategoryId ( string $subcategoryId ) : static
$subcategoryId string Usually a translation key, eg 'General_Overview', 'Actions_Pages', ...
return static
    public function setSubcategoryId($subcategoryId)
    {
        $this->subcategoryId = $subcategoryId;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 public static function configure(WidgetConfig $config)
 {
     $config->setCategoryId('General_Visitors');
     $config->setSubcategoryId('UserCountry_SubmenuLocations');
     $config->setName('UserCountryMap_VisitorMap');
     $config->setAction('visitorMap');
     $config->setOrder(1);
 }
All Usage Examples Of Piwik\Widget\WidgetConfig::setSubcategoryId