public function ConfigEntityRevisionsType::setNewRevision in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::setNewRevision()
- 1.x 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\EntityCode
public function setNewRevision($new_revision) {
$this->new_revision = $new_revision;
}