public NodeType::setNewRevision($new_revision)
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 127
Class
- NodeType
- Defines the Node type configuration entity.
Namespace
Drupal\node\Entity
Code
public function setNewRevision($new_revision) { $this->new_revision = $new_revision; }
Please login to continue.