You are here

interface TranslatableInteface in Backup and Migrate 8.4

Interface TranslatableInteface.

@package BackupMigrate\Core\Translation

Hierarchy

Expanded class hierarchy of TranslatableInteface

All classes that implement TranslatableInteface

File

lib/backup_migrate_core/src/Translation/TranslatableInteface.php, line 10

Namespace

BackupMigrate\Core\Translation
View source
interface TranslatableInteface {

  /**
   * Translate a string.
   *
   * @param string $string
   *  The string to be translated.
   * @param $replacements
   *  Any untranslatable variables to be replaced into the string.
   * @param $context
   *  Extra context to help translators distinguish ambiguous strings.
   *
   * @return mixed
   */
  public function t($string, $replacements = [], $context = []);

}

Members

Namesort descending Modifiers Type Description Overrides
TranslatableInteface::t public function Translate a string.