__('Type 1'), '2' => __('Type 2')]; } public function getBannerStatusList() { return ['1' => __('Banner_status 1'), '0' => __('Banner_status 0')]; } public function getTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['type']) ? $data['type'] : ''); $list = $this->getTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getBannerStatusTextAttr($value, $data) { $value = $value ? $value : (isset($data['banner_status']) ? $data['banner_status'] : ''); $list = $this->getBannerStatusList(); return isset($list[$value]) ? $list[$value] : ''; } }