Widget/Widget.php
public function getWidgets($checkRole = true)
    {
        // Check Role
        $this->checkRole = $checkRole;

        // Dispatch Event
        if (!$this->widgets) {
            $this->eventDispatcher->dispatch(WidgetEvent::WIDGET_START, new WidgetEvent($this));
        }

        return $this->widgets;
    }
public function getWidgets($checkRole = true)
    {
        // Check Role
        $this->checkRole = $checkRole;

        // Dispatch Event
        if (!$this->widgets) {
            $this->eventDispatcher->dispatch(WidgetEvent::WIDGET_START, new WidgetEvent($this));
        }

        return $this->widgets;
    }
Get Widgets.

@return array|ItemInterface[]