public function EntityInterface::setNewRevision

Enforces an entity to be saved as a new revision.

Parameters

bool $value: (optional) Whether a new revision should be saved.

See also

Drupal\Core\Entity\EntityInterface::isNewRevision()

2 methods override EntityInterface::setNewRevision()
Entity::setNewRevision in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements EntityInterface::setNewRevision().
ViewUI::setNewRevision in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\Entity\EntityInterface::setNewRevision().

File

drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 73
Definition of Drupal\Core\Entity\EntityInterface.

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function setNewRevision($value = TRUE);