Skip to content
Snippets Groups Projects
Commit bf7d36d6 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2079095 by pwolanin: Shorten the doxygen for method t() in...

Issue #2079095 by pwolanin: Shorten the doxygen for method t() in ControllerBase to the standard version.
parent d415be5b
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -186,23 +186,9 @@ protected function currentUser() {
}
/**
* Translates a string to the current language or to a given language using
* the string translation service.
*
* @param string $string
* A string containing the English string to translate.
* @param array $args
* An associative array of replacements to make after translation. Based
* on the first character of the key, the value is escaped and/or themed.
* See \Drupal\Core\Utility\String::format() for details.
* @param array $options
* An associative array of additional options, with the following elements:
* - 'langcode': The language code to translate to a language other than
* what is used to display the page.
* - 'context': The context the source string belongs to.
* Translates a string to the current language or to a given language.
*
* @return string
* The translated string.
* See the t() documentation for details.
*/
protected function t($string, array $args = array(), array $options = array()) {
return $this->container->get('string_translation')->translate($string, $args, $options);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment