public function getAlias() { if (is_array($this->name)) { return Yii::t($this->name['category'], $this->name['message']); } return $this->name; }