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 VocabularyInterface::setNewRevision

File

core/modules/taxonomy/src/Entity/Vocabulary.php, line 175

Class

Vocabulary
Defines the taxonomy vocabulary entity.

Namespace

Drupal\taxonomy\Entity

Code

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