You are here

public function EnhancedEntityBundle::shouldCreateNewRevision in Entity API 8.0

Returns whether a new revision should be created by default.

Return value

bool TRUE if a new revision should be created by default.

Overrides RevisionableEntityBundleInterface::shouldCreateNewRevision

File

tests/modules/entity_module_test/src/Entity/EnhancedEntityBundle.php, line 90
Contains \Drupal\entity_module_test\Entity\EnhancedEntityBundle.

Class

EnhancedEntityBundle
Provides bundles for the test entity.

Namespace

Drupal\entity_module_test\Entity

Code

public function shouldCreateNewRevision() {
  return $this->new_revision;
}