You are here

public function ProfileType::allowsRevisions in Profile 8

Gets whether this profile type allows revisions.

Return value

bool Whether this profile type allows revisions.

Overrides ProfileTypeInterface::allowsRevisions

3 calls to ProfileType::allowsRevisions()
ProfileType::preSave in src/Entity/ProfileType.php
Acts on an entity before the presave hook is invoked.
ProfileType::shouldCreateNewRevision in src/Entity/ProfileType.php
Gets whether a new revision should be created by default.
ProfileType::showRevisionUi in src/Entity/ProfileType.php
Gets whether profiles of this type should show the revision fields.

File

src/Entity/ProfileType.php, line 185

Class

ProfileType
Defines the profile type entity class.

Namespace

Drupal\profile\Entity

Code

public function allowsRevisions() {
  return $this->allow_revisions;
}