public ContentEntityBase::isNewRevision()
Determines whether a new revision should be created on save.
Return value
bool TRUE if a new revision should be created.
Overrides RevisionableInterface::isNewRevision
See also
\Drupal\Core\Entity\EntityInterface::setNewRevision()
File
- core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 287
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\Entity
Code
1 2 3 | public function isNewRevision() { return $this ->newRevision || ( $this ->getEntityType()->hasKey( 'revision' ) && ! $this ->getRevisionId()); } |
Please login to continue.