W3cubDocs

/Drupal 8

interface TranslationInterface

Interface for the translation.manager translation service.

Hierarchy

Related topics

Internationalization
Internationalization and translation

File

core/lib/Drupal/Core/StringTranslation/TranslationInterface.php, line 10

Namespace

Drupal\Core\StringTranslation

Members

Name Modifiers Type Description
TranslationInterface::formatPlural public function Formats a string containing a count of items.
TranslationInterface::translate public function Translates a string to the current language or to a given language.
TranslationInterface::translateString public function Translates a TranslatableMarkup object to a string.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!StringTranslation!TranslationInterface.php/interface/TranslationInterface/8.1.x