Implements Drupal\locale\LocaleString::save().
Overrides StringInterface::save
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' => $string
->getString(),
)));
}
return $this;
}