__('Type 1'),'2' => __('Type 2'),'3' => __('Type 3')]; } public function getStatusList() { return ['normal' => __('Status normal'),'hidden' => __('Status hidden')]; } public function getTypeTextAttr($value, $data) { $value = $value ? $value : $data['type']; $list = $this->getTypeList(); return isset($list[$value]) ? $list[$value] : ''; } public function getStatusTextAttr($value, $data) { $value = $value ? $value : $data['status']; $list = $this->getStatusList(); return isset($list[$value]) ? $list[$value] : ''; } }