Skip to content
Snippets Groups Projects

Issue #3515019: Contact form throws error on submitting

Open Ishani Patel requested to merge issue/drupal-3515019:3515019-contact-form-throws into 11.x
Files
2
@@ -228,14 +228,14 @@ protected static function placeholderFormat($string, array $args) {
/**
* Escapes a placeholder replacement value if needed.
*
* @param string|\Drupal\Component\Render\MarkupInterface $value
* @param string|\Drupal\Component\Render\MarkupInterface|null $value
* A placeholder replacement value.
*
* @return string
* The properly escaped replacement value.
*/
protected static function placeholderEscape($value) {
return $value instanceof MarkupInterface ? (string) $value : Html::escape($value);
return $value instanceof MarkupInterface ? (string) $value : Html::escape((string) $value);
}
}
Loading