Entity/WidgetUser.php
public function addWidgetConfig(string $widgetId, array $config = [])
    {
        $this->config[$widgetId] = array_merge($this->config[$widgetId] ?? [], $config);

        return $this;
    }
public function addWidgetConfig(string $widgetId, array $config = [])
    {
        $this->config[$widgetId] = array_merge($this->config[$widgetId] ?? [], $config);

        return $this;
    }
public function addWidgetConfig ( string $ widgetId , array $ config = [ ] ) { $ this -> config [ $ widgetId ] = array_merge ( $ this -> config [ $ widgetId ] ?? [ ] , $ config ) ; return $ this ; }
Add Widget Config.

@param string $widgetId
@param array  $config

@return $this
Add Widget Config .