You are here

public function NodeTypeInterface::isNewRevision in Drupal 8

Gets whether a new revision should be created by default.

Return value

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

Deprecated

in drupal:8.3.0 and is removed from drupal:9.0.0. Use Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision() instead.

See also

https://www.drupal.org/node/3067365

1 method overrides NodeTypeInterface::isNewRevision()
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/NodeTypeInterface.php, line 33

Class

NodeTypeInterface
Provides an interface defining a node type entity.

Namespace

Drupal\node

Code

public function isNewRevision();