You are here

public function ProfileType::shouldCreateNewRevision in Profile 8

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

1 call to ProfileType::shouldCreateNewRevision()
ProfileType::preSave in src/Entity/ProfileType.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/ProfileType.php, line 192

Class

ProfileType
Defines the profile type entity class.

Namespace

Drupal\profile\Entity

Code

public function shouldCreateNewRevision() {
  return $this
    ->allowsRevisions() && $this->new_revision;
}