public function RevisionableEntityBundleInterface::shouldCreateNewRevision in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/RevisionableEntityBundleInterface.php \Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision()
- 9 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();