Issue #2585781 by anil280988, Davinder.Snehi, sdstyles, lucian.gutoiu, Chi, jhodgdon, GoZ, YesCT: Wrong documentation of t()

8.0.x
Alex Pott 2015-10-22 16:24:23 -07:00
parent 921cf91a2e
commit fd6f9cb771
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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()
*/