You are here

public function NodeType::isNewRevision in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\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 125
Contains \Drupal\node\Entity\NodeType.

Class

NodeType
Defines the Node type configuration entity.

Namespace

Drupal\node\Entity

Code

public function isNewRevision() {
  return $this->new_revision;
}