function NodeTypeInterface::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.
1 method overrides NodeTypeInterface::setNewRevision()
- NodeType::setNewRevision in core/
modules/ node/ src/ Entity/ NodeType.php - #[ActionMethod(adminLabel: new TranslatableMarkup('Automatically create new revisions'), pluralize: FALSE)]
File
-
core/
modules/ node/ src/ NodeTypeInterface.php, line 27
Class
- NodeTypeInterface
- Provides an interface defining a node type entity.
Namespace
Drupal\nodeCode
public function setNewRevision($new_revision);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.