function RevisionableEntityBundleInterface::shouldCreateNewRevision
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/RevisionableEntityBundleInterface.php \Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision()
- 10 core/lib/Drupal/Core/Entity/RevisionableEntityBundleInterface.php \Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision()
- 11.x core/lib/Drupal/Core/Entity/RevisionableEntityBundleInterface.php \Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision()
Gets whether a new revision should be created by default.
Return value
bool TRUE if a new revision should be created by default.
3 methods override RevisionableEntityBundleInterface::shouldCreateNewRevision()
- BlockContentType::shouldCreateNewRevision in core/
modules/ block_content/ src/ Entity/ BlockContentType.php - Gets whether a new revision should be created by default.
- MediaType::shouldCreateNewRevision in core/
modules/ media/ src/ Entity/ MediaType.php - Gets whether a new revision should be created by default.
- NodeType::shouldCreateNewRevision in core/
modules/ node/ src/ Entity/ NodeType.php - Gets whether a new revision should be created by default.
File
-
core/
lib/ Drupal/ Core/ Entity/ RevisionableEntityBundleInterface.php, line 18
Class
- RevisionableEntityBundleInterface
- Provides an interface defining a revisionable entity bundle.
Namespace
Drupal\Core\EntityCode
public function shouldCreateNewRevision();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.