function TranslationString::delete

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

Overrides StringBase::delete

File

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

Class

TranslationString
Defines the locale translation string object.

Namespace

Drupal\locale

Code

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

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