function NodeType::shouldCreateNewRevision
Same name in other branches
- 9 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::shouldCreateNewRevision()
- 10 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::shouldCreateNewRevision()
- 11.x core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::shouldCreateNewRevision()
Overrides RevisionableEntityBundleInterface::shouldCreateNewRevision
1 call to NodeType::shouldCreateNewRevision()
- NodeType::isNewRevision in core/
modules/ node/ src/ Entity/ NodeType.php - Gets whether a new revision should be created by default.
File
-
core/
modules/ node/ src/ Entity/ NodeType.php, line 219
Class
- NodeType
- Defines the Node type configuration entity.
Namespace
Drupal\node\EntityCode
public function shouldCreateNewRevision() {
return $this->new_revision;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.