From fd6f9cb771611152b3bca0dcbec7f24443a56135 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Thu, 22 Oct 2015 16:24:23 -0700 Subject: [PATCH] Issue #2585781 by anil280988, Davinder.Snehi, sdstyles, lucian.gutoiu, Chi, jhodgdon, GoZ, YesCT: Wrong documentation of t() --- core/includes/bootstrap.inc | 4 ++-- .../Drupal/Core/StringTranslation/TranslationInterface.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 41c6eb0f49be..65a62d768cf0 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 57ed36eb27d5..1944ecbc3fde 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() */ -- GitLab