__('Type base'), 'alpha' => __('Type alpha'), 'beta' => __('Type beta'), 'rc' => __('Type rc'), 'release' => __('Type release')]; } public function getTypeTextAttr($value, $data) { $value = $value ? $value : (isset($data['type']) ? $data['type'] : ''); $list = $this->getTypeList(); return isset($list[$value]) ? $list[$value] : ''; } }