function NodeTypeInterface::setNewRevision
Same name in other branches
- 9 core/modules/node/src/NodeTypeInterface.php \Drupal\node\NodeTypeInterface::setNewRevision()
- 8.9.x core/modules/node/src/NodeTypeInterface.php \Drupal\node\NodeTypeInterface::setNewRevision()
- 10 core/modules/node/src/NodeTypeInterface.php \Drupal\node\NodeTypeInterface::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 NodeTypeInterface::setNewRevision()
- NodeType::setNewRevision in core/
modules/ node/ src/ Entity/ NodeType.php - Sets whether a new revision should be created by default.
File
-
core/
modules/ node/ src/ NodeTypeInterface.php, line 27
Class
- NodeTypeInterface
- Provides an interface defining a node type entity.
Namespace
Drupal\nodeCode
public function setNewRevision($new_revision);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.