Search for wasDefaultRevision

  1. Search 7.x for wasDefaultRevision
  2. Search 9.5.x for wasDefaultRevision
  3. Search 8.9.x for wasDefaultRevision
  4. Search 10.3.x for wasDefaultRevision
  5. Other projects
Title Object type File name Summary
ContentEntityBase::wasDefaultRevision function core/lib/Drupal/Core/Entity/ContentEntityBase.php
RevisionableContentEntityBaseTest::testWasDefaultRevision function core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php Tests the behavior of the "revision_default" flag.
RevisionableInterface::wasDefaultRevision function core/lib/Drupal/Core/Entity/RevisionableInterface.php Checks whether the entity object was a default revision when it was saved.
StubRevisionableEntity::wasDefaultRevision function core/tests/Drupal/Tests/Core/Entity/StubRevisionableEntity.php Checks whether the entity object was a default revision when it was saved.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.