function NodeType::isNewRevision

Overrides NodeTypeInterface::isNewRevision

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 isNewRevision() {
    @trigger_error('NodeType::isNewRevision is deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use Drupal\\Core\\Entity\\RevisionableEntityBundleInterface::shouldCreateNewRevision() instead. See https://www.drupal.org/node/3067365', E_USER_DEPRECATED);
    return $this->shouldCreateNewRevision();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.