public function EntityBase::enforceIsNew in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::enforceIsNew()
- 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\EntityCode
public function enforceIsNew($value = TRUE) {
$this->enforceIsNew = $value;
return $this;
}