diff --git a/core/lib/Drupal/Component/Utility/FormattableString.php b/core/lib/Drupal/Component/Utility/FormattableString.php index 7b866a4..a15cadd 100644 --- a/core/lib/Drupal/Component/Utility/FormattableString.php +++ b/core/lib/Drupal/Component/Utility/FormattableString.php @@ -41,8 +41,6 @@ */ class FormattableString implements SafeStringInterface { - use ToStringTrait; - /** * The arguments to replace placeholders with. * @@ -71,7 +69,7 @@ public function __construct($string, array $arguments) { /** * {@inheritdoc} */ - public function render() { + public function __toString() { return static::placeholderFormat($this->string, $this->arguments); }