public function StringBase::setStorage in Drupal 9
Same name and namespace in other branches
- 8 core/modules/locale/src/StringBase.php \Drupal\locale\StringBase::setStorage()
Sets the string storage.
Parameters
\Drupal\locale\StringStorageInterface $storage: The storage to use for this string.
Return value
$this
Overrides StringInterface::setStorage
File
- core/
modules/ locale/ src/ StringBase.php, line 121
Class
- StringBase
- Defines the locale string base class.
Namespace
Drupal\localeCode
public function setStorage($storage) {
$this->storage = $storage;
return $this;
}