BlockContentType::shouldCreateNewRevision

public 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 83

Class

BlockContentType
Defines the custom block type entity.

Namespace

Drupal\block_content\Entity

Code

1
2
3
public function shouldCreateNewRevision() {
  return $this->revision;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.