/** * @return array */ public function toOptionArray() { $widgets = []; $widgetsOptionsArr = $this->_model->getWidgetsOptionArray('type'); foreach ($widgetsOptionsArr as $widget) { $widgets[$widget['value']] = $widget['label']; } return $widgets; }