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

public function isNewRevision() {
  return $this->new_revision;
}
doc_Drupal
2016-10-29 09:31:30
Comments
Leave a Comment

Please login to continue.