You are here

public function TranslatorInterface::translate in Backup and Migrate 5.0.x

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

1 method overrides TranslatorInterface::translate()
PassthroughTranslator::translate in src/Core/Translation/PassthroughTranslator.php

File

src/Core/Translation/TranslatorInterface.php, line 27

Class

TranslatorInterface
An interface for a language translation service.

Namespace

Drupal\backup_migrate\Core\Translation

Code

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