function SourceString::getString

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

Overrides StringInterface::getString

File

core/modules/locale/src/SourceString.php, line 31

Class

SourceString
Defines the locale source string object.

Namespace

Drupal\locale

Code

public function getString() {
    return isset($this->source) ? $this->source : '';
}

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