public function BlockContentType::shouldCreateNewRevision in Zircon Profile 8.0
Same name and namespace in other branches
- 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\EntityCode
public function shouldCreateNewRevision() {
return $this->revision;
}