code: public function getSingleWidget()
      {
          if (is_null($this->_singleWidget)) {
              $this->_singleWidget = false;
              $widgets = $this->collectorItem->getAll();
              if (!empty($widgets)) {
                  $widget = array_shift($widgets);
                  $this->_singleWidget = Yii::$app->collectors['widgets']->build($this, $widget->object);
              }
          }
  
          return $this->_singleWidget;
      }
docs: Get single widget.
  
  @return [[@doctodo return_type:getSingleWidget]] [[@doctodo return_description:getSingleWidget]]