You are here

public function StringBase::getVersion in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/locale/src/StringBase.php \Drupal\locale\StringBase::getVersion()
  2. 10 core/modules/locale/src/StringBase.php \Drupal\locale\StringBase::getVersion()

Gets the string version.

Return value

string Version identifier.

Overrides StringInterface::getVersion

File

core/modules/locale/src/StringBase.php, line 84

Class

StringBase
Defines the locale string base class.

Namespace

Drupal\locale

Code

public function getVersion() {
  return isset($this->version) ? $this->version : NULL;
}