/** * @param ElementInterface $elementInstance * * @return string */ public function renderErrorMessage(ElementInterface $elementInstance) { $parsedFieldPlaceholders = $elementInstance->parseFieldPlaceholders($this->getErrorMessage()); return $this->_parseConditionPlaceholders($parsedFieldPlaceholders); }