Commit bf7d36d6 authored by webchick's avatar webchick

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
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment