You are here

public function BlockContentType::shouldCreateNewRevision in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/block_content/src/Entity/BlockContentType.php \Drupal\block_content\Entity\BlockContentType::shouldCreateNewRevision()

Returns whether a new revision should be created by default.

Return value

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

Overrides BlockContentTypeInterface::shouldCreateNewRevision

File

core/modules/block_content/src/Entity/BlockContentType.php, line 88
Contains \Drupal\block_content\Entity\BlockContentType.

Class

BlockContentType
Defines the custom block type entity.

Namespace

Drupal\block_content\Entity

Code

public function shouldCreateNewRevision() {
  return $this->revision;
}