function TranslationString::save

Same name in other branches
  1. 9 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::save()
  2. 8.9.x core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::save()
  3. 11.x core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::save()

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.