You are here

public function TranslationString::delete in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::delete()
  2. 9 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::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;
}