function NodeType::setNewRevision

Attributes

#[ActionMethod(adminLabel: new TranslatableMarkup('Automatically create new revisions'), pluralize: FALSE)]

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 139

Class

NodeType
Defines the Node type configuration entity.

Namespace

Drupal\node\Entity

Code

public function setNewRevision($new_revision) {
  $this->new_revision = $new_revision;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.