public function ConfigEntityRevisionsType::isNewRevision in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::isNewRevision()
- 1.x src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::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 ConfigEntityRevisionsTypeInterface::isNewRevision
Deprecated
in Drupal 8.3.0 and will be removed before Drupal 9.0.0. Use Drupal\Core\Entity\RevisionableEntityBundleInterface::shouldCreateNewRevision() instead.
1 call to ConfigEntityRevisionsType::isNewRevision()
- ConfigEntityRevisionsType::shouldCreateNewRevision in src/
Entity/ ConfigEntityRevisionsType.php - Gets whether a new revision should be created by default.
File
- src/
Entity/ ConfigEntityRevisionsType.php, line 107
Class
- ConfigEntityRevisionsType
- Defines the Config Entity Revisions configuration entity.
Namespace
Drupal\config_entity_revisions\EntityCode
public function isNewRevision() {
return $this->new_revision;
}