You are here

protected function Tasks::t in Drupal 9

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Database/Install/Tasks.php \Drupal\Core\Database\Install\Tasks::t()

Translates a string to the current language or to a given language.

See also

\Drupal\Core\StringTranslation\TranslatableMarkup::__construct()

1 call to Tasks::t()
Tasks::name in core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
Return the human-readable name of the driver.

File

core/lib/Drupal/Core/Database/Install/Tasks.php, line 344

Class

Tasks
Database installer structure.

Namespace

Drupal\Core\Database\Install

Code

protected function t($string, array $args = [], array $options = []) {
  return new TranslatableMarkup($string, $args, $options);
}