You are here

public function ConfigEntityRevisionsType::setNewRevision 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::setNewRevision()
  2. 8 src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::setNewRevision()

Sets whether a new revision should be created by default.

Parameters

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

Overrides ConfigEntityRevisionsTypeInterface::setNewRevision

File

src/Entity/ConfigEntityRevisionsType.php, line 114

Class

ConfigEntityRevisionsType
Defines the Config Entity Revisions configuration entity.

Namespace

Drupal\config_entity_revisions\Entity

Code

public function setNewRevision($new_revision) {
  $this->new_revision = $new_revision;
}