function RevisionableEntityBundleInterface::shouldCreateNewRevision

Same name and namespace in other branches
  1. 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.

1 method overrides RevisionableEntityBundleInterface::shouldCreateNewRevision()
MediaType::shouldCreateNewRevision in core/modules/media/src/Entity/MediaType.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.