function VocabularyInterface::setNewRevision

Same name in other branches
  1. 11.x core/modules/taxonomy/src/VocabularyInterface.php \Drupal\taxonomy\VocabularyInterface::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.

1 method overrides VocabularyInterface::setNewRevision()
Vocabulary::setNewRevision in core/modules/taxonomy/src/Entity/Vocabulary.php
Sets whether a new revision should be created by default.

File

core/modules/taxonomy/src/VocabularyInterface.php, line 42

Class

VocabularyInterface
Provides an interface defining a taxonomy vocabulary entity.

Namespace

Drupal\taxonomy

Code

public function setNewRevision($new_revision);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.