Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
per #2018411: Figure out a nice DX when working with injected translation the doxygen on the t() method should be just:
/**
* Translates a string to the current language or to a given language.
*
* See the t() documentation for details.
*/
protected function t($string, array $args = array(), array $options = array()) {
return $this->stringTranslation->translate($string, $args, $options);
}
Comment | File | Size | Author |
---|---|---|---|
#1 | 2079095-1.patch | 1.41 KB | pwolanin |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedComment #2
ParisLiakos CreditAttribution: ParisLiakos commentedoh yes
Comment #3
ParisLiakos CreditAttribution: ParisLiakos commentedtag
Comment #4
webchickThanks, sorry for missing that.
Committed and pushed to 8.x.