private function renderMessage($model, $attribute)
    {
        $attributeLabel = $model->getAttributeLabel($attribute);
        $message = strtr($this->message, ['{attribute}' => $attributeLabel]);

        return $message;
    }
private function renderMessage($model, $attribute)
    {
        $attributeLabel = $model->getAttributeLabel($attribute);
        $message = strtr($this->message, ['{attribute}' => $attributeLabel]);

        return $message;
    }
private function renderMessage ( $ model , $ attribute ) { $ attributeLabel = $ model -> getAttributeLabel ( $ attribute ) ; $ message = strtr ( $ this -> message , [ '{attribute}' => $ attributeLabel ] ) ; return $ message ; }
Renders the attribute's error message.
@param [\yii\base\Model](http://www.yiiframework.com/doc-2.0/yii-base-model.html) $model the data model currently being validated.
@param string $attribute the name of the attribute to be validated.
@return string the error message.
Renders the attribute s error message .