function BlockContentType::shouldCreateNewRevision
Gets whether a new revision should be created by default.
Return value
bool TRUE if a new revision should be created by default.
Overrides RevisionableEntityBundleInterface::shouldCreateNewRevision
File
-
core/
modules/ block_content/ src/ Entity/ BlockContentType.php, line 93
Class
- BlockContentType
- Defines the custom block type entity.
Namespace
Drupal\block_content\EntityCode
public function shouldCreateNewRevision() {
return $this->revision;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.