RevisionableEntityBundleInterface.php 447 B

1234567891011121314151617181920
  1. <?php
  2. namespace Drupal\Core\Entity;
  3. use Drupal\Core\Config\Entity\ConfigEntityInterface;
  4. /**
  5. * Provides an interface defining a revisionable entity bundle.
  6. */
  7. interface RevisionableEntityBundleInterface extends ConfigEntityInterface {
  8. /**
  9. * Gets whether a new revision should be created by default.
  10. *
  11. * @return bool
  12. * TRUE if a new revision should be created by default.
  13. */
  14. public function shouldCreateNewRevision();
  15. }