You are here

public function TranslationString::delete in Drupal 8

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

Deletes string object from storage.

Return value

$this

Throws

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

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