__('Icon_type 0'), '1' => __('Icon_type 1'), '2' => __('Icon_type 2')]; } public function getStatusList() { return ['1' => __('Status 1'), '0' => __('Status 0')]; } public function getIconTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['icon_type']) ? $data['icon_type'] : ''); $list = $this->getIconTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['status']) ? $data['status'] : ''); $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } }