function StubRevisionableEntity::wasDefaultRevision
Checks whether the entity object was a default revision when it was saved.
Return value
bool TRUE if the entity object was a revision, FALSE otherwise.
Overrides RevisionableInterface::wasDefaultRevision
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ StubRevisionableEntity.php, line 59
Class
- StubRevisionableEntity
- A stub revisionable entity for testing purposes.
Namespace
Drupal\Tests\Core\EntityCode
public function wasDefaultRevision() : bool {
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.