function TranslationInterface::translateString
Same name in other branches
- 9 core/lib/Drupal/Core/StringTranslation/TranslationInterface.php \Drupal\Core\StringTranslation\TranslationInterface::translateString()
- 8.9.x core/lib/Drupal/Core/StringTranslation/TranslationInterface.php \Drupal\Core\StringTranslation\TranslationInterface::translateString()
- 11.x core/lib/Drupal/Core/StringTranslation/TranslationInterface.php \Drupal\Core\StringTranslation\TranslationInterface::translateString()
Translates a TranslatableMarkup object to a string.
Parameters
\Drupal\Core\StringTranslation\TranslatableMarkup $translated_string: A TranslatableMarkup object.
Return value
string The translated string.
File
-
core/
lib/ Drupal/ Core/ StringTranslation/ TranslationInterface.php, line 59
Class
- TranslationInterface
- Interface for the translation.manager translation service.
Namespace
Drupal\Core\StringTranslationCode
public function translateString(TranslatableMarkup $translated_string);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.