You are here

public function TranslatableInterface::t in Backup and Migrate 5.0.x

Translate a string.

Parameters

string $string: The string to be translated.

$replacements: Any untranslatable variables to be replaced into the string.

$context: Extra context to help translators distinguish ambiguous strings.

Return value

mixed

File

src/Core/Translation/TranslatableInterface.php, line 24

Class

TranslatableInterface
@package Drupal\backup_migrate\Core\Translation

Namespace

Drupal\backup_migrate\Core\Translation

Code

public function t($string, $replacements = [], $context = []);