You are here

public function TranslationInterface::translateString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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.

2 methods override TranslationInterface::translateString()
TestTranslationManager::translateString in core/modules/user/tests/src/Unit/PermissionHandlerTest.php
Translates a TranslatableMarkup object to a string.
TranslationManager::translateString in core/lib/Drupal/Core/StringTranslation/TranslationManager.php
Translates a TranslatableMarkup object to a string.

File

core/lib/Drupal/Core/StringTranslation/TranslationInterface.php, line 62
Contains \Drupal\Core\StringTranslation\TranslationInterface.

Class

TranslationInterface
Interface for the translation.manager translation service.

Namespace

Drupal\Core\StringTranslation

Code

public function translateString(TranslatableMarkup $translated_string);