You are here

TranslatableInteface.php in Backup and Migrate 8.4

File

lib/backup_migrate_core/src/Translation/TranslatableInteface.php
View source
<?php

namespace BackupMigrate\Core\Translation;


/**
 * Interface TranslatableInteface.
 *
 * @package BackupMigrate\Core\Translation
 */
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 = []);

}

Interfaces

Namesort descending Description
TranslatableInteface Interface TranslatableInteface.