NodeType::setNewRevision

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

1
2
3
public function setNewRevision($new_revision) {
  $this->new_revision = $new_revision;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.