Piwik\Widget\WidgetContainerConfig::getId PHP Method

getId() public method

Get the id of the widget.
public getId ( ) : string
return string
    public function getId()
    {
        return $this->id;
    }

Usage Example

Ejemplo n.º 1
0
 private function addContainer(WidgetContainerConfig $containerWidget)
 {
     $widgetId = $containerWidget->getId();
     $this->container[$widgetId] = $containerWidget;
     // widgets were added to this container, but the container did not exist yet.
     if (isset($this->containerWidgets[$widgetId])) {
         foreach ($this->containerWidgets[$widgetId] as $widget) {
             $containerWidget->addWidgetConfig($widget);
         }
         unset($this->containerWidgets[$widgetId]);
     }
 }