function EntityBase::enforceIsNew
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::enforceIsNew()
- 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::enforceIsNew()
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::enforceIsNew()
Overrides EntityInterface::enforceIsNew
1 call to EntityBase::enforceIsNew()
- EntityBase::setOriginalId in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Sets the original ID.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 143
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function enforceIsNew($value = TRUE) {
$this->enforceIsNew = $value;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.