You are here

public function TranslationString::save in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::save()

Saves string object to storage.

Return value

$this

Throws

\Drupal\locale\StringStorageException In case of failures, an exception is thrown.

Overrides StringBase::save

File

core/modules/locale/src/TranslationString.php, line 108

Class

TranslationString
Defines the locale translation string object.

Namespace

Drupal\locale

Code

public function save() {
  parent::save();
  $this->isNew = FALSE;
  return $this;
}