lib/components/types/Item.php
public function getWidgets()
    {
        $sections = $this->sections;
        $widgets = [];
        foreach ($this->sections as $section) {
            foreach ($section->getAll() as $key => $widget) {
                $widgets[$key] = $widget;
            }
        }

        return $widgets;
    }
public function getWidgets()
    {
        $sections = $this->sections;
        $widgets = [];
        foreach ($this->sections as $section) {
            foreach ($section->getAll() as $key => $widget) {
                $widgets[$key] = $widget;
            }
        }

        return $widgets;
    }
Get widgets.

@return [[@doctodo return_type:getWidgets]] [[@doctodo return_description:getWidgets]]