original_string: protected function getErrorMessage($name, $params = [])
      {
          if ($this->simpleErrorMessage) {
              $name = 'message';
          }
          if (isset($this->$name)) {
              return [$this->$name, $params];
          }
          $this->$name = Yii::t('kdn/yii2/validators/domain', $this->getDefaultErrorMessages()[$name]);
          return [$this->$name, $params];
      }
code: protected function getErrorMessage($name, $params = [])
      {
          if ($this->simpleErrorMessage) {
              $name = 'message';
          }
          if (isset($this->$name)) {
              return [$this->$name, $params];
          }
          $this->$name = Yii::t('kdn/yii2/validators/domain', $this->getDefaultErrorMessages()[$name]);
          return [$this->$name, $params];
      }
code_tokens: protected function getErrorMessage ( $ name , $ params = [ ] ) { if ( $ this -> simpleErrorMessage ) { $ name = 'message' ; } if ( isset ( $ this -> $ name ) ) { return [ $ this -> $ name , $ params ] ; } $ this -> $ name = Yii :: t ( 'kdn/yii2/validators/domain' , $ this -> getDefaultErrorMessages ( ) [ $ name ] ) ; return [ $ this -> $ name , $ params ] ; }
docstring: Get error message by name.
  @param string $name error message name
  @param array $params parameters to be inserted into the error message
  @return array error message.
docstring_tokens: Get error message by name .