kartik\social\Widget::getConfig PHP Method

getConfig() public method

Gets configuration for a widget from the module
public getConfig ( string $widget ) : array
$widget string name of the widget
return array
    public function getConfig($widget)
    {
        $module = Config::getModule($this->moduleName);
        return isset($module->{$widget}) ? $module->{$widget} : [];
    }