You are here

public function EntityBase::enforceIsNew in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::enforceIsNew()
  2. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::enforceIsNew()

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 127

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function enforceIsNew($value = TRUE) {
  $this->enforceIsNew = $value;
  return $this;
}