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

public function setNewRevision($new_revision) {
  $this->new_revision = $new_revision;
}
doc_Drupal
2016-10-29 09:31:31
Comments
Leave a Comment

Please login to continue.