You are here

interface TranslatableInterface in Backup and Migrate 5.0.x

@package Drupal\backup_migrate\Core\Translation

Hierarchy

Expanded class hierarchy of TranslatableInterface

All classes that implement TranslatableInterface

File

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

Namespace

Drupal\backup_migrate\Core\Translation
View source
interface TranslatableInterface {

  /**
   * 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
TranslatableInterface::t public function Translate a string.