Esempio n. 1
0
 public function run()
 {
     $this->bindedAddons = ArrayHelper::map($this->bindedAddons, 'id', function (Addon $item) {
         return $item;
     }, function (Addon $item) {
         return AddonCategory::findById($item->addon_category_id)->name;
     });
     return $this->render('addons-list-widget', ['object_id' => $this->object_id, 'object_model_id' => $this->object_model_id, 'bindedAddons' => $this->bindedAddons]);
 }