public function StringBase::save in Localization update 7.2
Implements LocaleString::save().
Overrides StringInterface::save
1 call to StringBase::save()
- TranslationString::save in includes/
locale/ TranslationString.php - Implements StringInterface::save().
1 method overrides StringBase::save()
- TranslationString::save in includes/
locale/ TranslationString.php - Implements StringInterface::save().
File
- includes/
locale/ StringBase.php, line 191 - Definition of StringBase.
Class
- StringBase
- Defines the locale string base class.
Code
public function save() {
if ($storage = $this
->getStorage()) {
$storage
->save($this);
}
else {
throw new StringStorageException(format_string('The string cannot be saved because its not bound to a storage: @string', array(
'@string' => $this
->getString(),
)));
}
return $this;
}