function TranslationString::getString

Same name and namespace in other branches
  1. 8.9.x core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::getString()
  2. 10 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::getString()
  3. 11.x core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::getString()

Overrides StringInterface::getString

File

core/modules/locale/src/TranslationString.php, line 86

Class

TranslationString
Defines the locale translation string object.

Namespace

Drupal\locale

Code

public function getString() {
    return $this->translation ?? '';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.