You are here

abstract protected function StaticUITrait::t in Tome 8

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

Parameters

string $string: A string containing the English text to translate.

array $args: (optional) An associative array of replacements.

array $options: (optional) An associative array of additional options.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup An object that, when cast to a string, returns the translated string.

5 calls to StaticUITrait::t()
StaticGeneratorForm::buildForm in modules/tome_static/src/Form/StaticGeneratorForm.php
Form constructor.
StaticGeneratorForm::finishCallback in modules/tome_static/src/Form/StaticGeneratorForm.php
Batch finished callback after all paths and assets have been exported.
StaticGeneratorForm::validateForm in modules/tome_static/src/Form/StaticGeneratorForm.php
Form validation handler.
StaticUITrait::formatPathException in modules/tome_static/src/StaticUITrait.php
Formats an exception caught when requesting a path.
StaticUITrait::getWarnings in modules/tome_static/src/StaticUITrait.php
Collects warnings to help users correct issues in rendered HTML.

File

modules/tome_static/src/StaticUITrait.php, line 82

Class

StaticUITrait
Trait containing methods useful for different static user interfaces.

Namespace

Drupal\tome_static

Code

protected abstract function t($string, array $args = [], array $options = []);