diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 41c6eb0f49b..65a62d768cf 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -304,8 +304,8 @@ function drupal_get_path($type, $name) { * - 'context' (defaults to the empty context): The context the source string * belongs to. * - * @return - * The translated string. + * @return \Drupal\Core\StringTranslation\TranslatableMarkup + * An object that, when cast to a string, will yield the translated string. * * @see \Drupal\Component\Utility\SafeMarkup::format() * @ingroup sanitization diff --git a/core/lib/Drupal/Core/StringTranslation/TranslationInterface.php b/core/lib/Drupal/Core/StringTranslation/TranslationInterface.php index 57ed36eb27d..1944ecbc3fd 100644 --- a/core/lib/Drupal/Core/StringTranslation/TranslationInterface.php +++ b/core/lib/Drupal/Core/StringTranslation/TranslationInterface.php @@ -34,7 +34,7 @@ interface TranslationInterface { * - 'context': The context the source string belongs to. * * @return \Drupal\Core\StringTranslation\TranslatableMarkup - * The translated string. + * An object that, when cast to a string, will yield the translated string. * * @see \Drupal\Component\Utility\SafeMarkup::format() */