NodeType::isNewRevision

public NodeType::isNewRevision()

Gets whether a new revision should be created by default.

Return value

bool TRUE if a new revision should be created by default.

Overrides NodeTypeInterface::isNewRevision

File

core/modules/node/src/Entity/NodeType.php, line 120

Class

NodeType
Defines the Node type configuration entity.

Namespace

Drupal\node\Entity

Code

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

Please login to continue.