/** * Define specific data structure which will be sent in the triggering event (model.selected) * * @param mixed $item Model item * * @return string */ protected function defineDataItem($item) { $data = parent::defineDataItem($item); $data['selected_value'] = $item->getName(); $data['selected_sku'] = $item->getSKU(); return $data; }
/** * Define specific data structure which will be sent in the triggering event (model.selected) * * @param type $item * * @return string */ protected function defineDataItem($item) { $data = parent::defineDataItem($item); $data['selected_value'] = $item->getName(); $data['selected_login'] = '******' . $item->getLogin() . '>'; return $data; }
/** * Define specific data structure which will be sent in the triggering event (model.selected) * * @param type $item * * @return string */ protected function defineDataItem($item) { $data = parent::defineDataItem($item); $data['selected_value'] = $item->getCountry(); return $data; }