src/Charcoal/Ui/Dashboard/DashboardTrait.php
public function setWidgets(array $widgets)
    {
        $this->widgets = [];

        foreach ($widgets as $widgetIdent => $widget) {
            $this->addWidget($widgetIdent, $widget);
        }

        return $this;
    }
public function setWidgets(array $widgets)
    {
        $this->widgets = [];

        foreach ($widgets as $widgetIdent => $widget) {
            $this->addWidget($widgetIdent, $widget);
        }

        return $this;
    }
public function setWidgets ( array $ widgets ) { $ this -> widgets = [ ] ; foreach ( $ widgets as $ widgetIdent => $ widget ) { $ this -> addWidget ( $ widgetIdent , $ widget ) ; } return $ this ; }
Set the dashboard's widgets.

@param array $widgets A collection of widgets.
@return DashboardInterface Chainable
Set the dashboard s widgets .