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

Gets the string storage.

Return value

\Drupal\locale\StringStorageInterface The storage used for this string.

Overrides StringInterface::getStorage

3 calls to StringBase::getStorage()
StringBase::delete in core/modules/locale/src/StringBase.php
Deletes string object from storage.
StringBase::getLocations in core/modules/locale/src/StringBase.php
Gets location information for this string.
StringBase::save in core/modules/locale/src/StringBase.php
Saves string object to storage.

File

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

Class

StringBase
Defines the locale string base class.

Namespace

Drupal\locale

Code

public function getStorage() {
  return $this->storage ?? NULL;
}