public function ConfigEntityBase::isNew in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::isNew()
- 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::isNew()
Overrides Entity::isNew().
EntityInterface::enforceIsNew() is only supported for newly created configuration entities but has no effect after saving, since each configuration entity is unique.
Overrides EntityBase::isNew
2 calls to ConfigEntityBase::isNew()
- ConfigEntityBase::preSave in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php - Acts on an entity before the presave hook is invoked.
- ConfigEntityBundleBase::preSave in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBundleBase.php - Acts on an entity before the presave hook is invoked.
File
- core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityBase.php, line 146
Class
Namespace
Drupal\Core\Config\EntityCode
public function isNew() {
return !empty($this->enforceIsNew);
}