You are here

public function ConfigEntityRevisionsTypeInterface::isNewRevision in Config Entity Revisions 8

Same name and namespace in other branches
  1. 8.2 src/ConfigEntityRevisionsTypeInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsTypeInterface::isNewRevision()
  2. 1.x src/ConfigEntityRevisionsTypeInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsTypeInterface::isNewRevision()

Gets whether a new revision should be created by default.

Return value

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

Deprecated

in Drupal 8.3.0 and will be removed before Drupal 9.0.0. Use Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision() instead.

1 method overrides ConfigEntityRevisionsTypeInterface::isNewRevision()
ConfigEntityRevisionsType::isNewRevision in src/Entity/ConfigEntityRevisionsType.php
Gets whether a new revision should be created by default.

File

src/ConfigEntityRevisionsTypeInterface.php, line 31

Class

ConfigEntityRevisionsTypeInterface
Provides an interface defining a config_entity_revisions type entity.

Namespace

Drupal\config_entity_revisions

Code

public function isNewRevision();