function EntityBase::isNew
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::isNew()
- 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::isNew()
- 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::isNew()
9 calls to EntityBase::isNew()
- Comment::preSave in core/
modules/ comment/ src/ Entity/ Comment.php - Acts on an entity before the presave hook is invoked.
- Media::getThumbnailHeight in core/
modules/ media/ src/ Entity/ Media.php - Gets the height of the thumbnail of a media item.
- Media::getThumbnailHeight in core/
modules/ media/ src/ Entity/ Media.php - Gets the height of the thumbnail of a media item.
- Media::getThumbnailUri in core/
modules/ media/ src/ Entity/ Media.php - Gets the URI for the thumbnail of a media item.
- Media::getThumbnailUri in core/
modules/ media/ src/ Entity/ Media.php - Gets the URI for the thumbnail of a media item.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 120
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function isNew() {
return !empty($this->enforceIsNew) || !$this->id();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.