You are here

public function ConfigEntityRevisionsType::shouldCreateNewRevision in Config Entity Revisions 1.x

Same name and namespace in other branches
  1. 8.2 src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::shouldCreateNewRevision()
  2. 8 src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::shouldCreateNewRevision()

Gets 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

src/Entity/ConfigEntityRevisionsType.php, line 163

Class

ConfigEntityRevisionsType
Defines the Config Entity Revisions configuration entity.

Namespace

Drupal\config_entity_revisions\Entity

Code

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