makePluggable('SliderWidgetGroup'); } /** * @param AbstractWidgetGroup $group */ public static function addGroup($group) { self::$groups[$group->getName()] = $group; } /** * @return AbstractWidgetGroup[] */ public static function getGroups() { return self::$groups; } /** * @param $name * * @return AbstractWidgetGroup */ public static function getGroup($name) { return self::$groups[$name]; } } WidgetGroupFactory::getInstance();