function RevisionableEntityBundleInterface::shouldCreateNewRevision

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/RevisionableEntityBundleInterface.php \Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision()
  2. 8.9.x core/lib/Drupal/Core/Entity/RevisionableEntityBundleInterface.php \Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision()
  3. 10 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.

4 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.
Vocabulary::shouldCreateNewRevision in core/modules/taxonomy/src/Entity/Vocabulary.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\Entity

Code

public function shouldCreateNewRevision();

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