Same name and namespace in other branches
- 8.9.x core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::setNewRevision()
- 9 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::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 NodeTypeInterface::setNewRevision
File
- core/
modules/ node/ src/ Entity/ NodeType.php, line 131
Class
- NodeType
- Defines the Node type configuration entity.
Namespace
Drupal\node\EntityCode
public function setNewRevision($new_revision) {
$this->new_revision = $new_revision;
}