You are here

protected function ProfileForm::showRevisionUi in Profile 8

Checks whether the revision form fields should be added to the form.

Return value

bool TRUE if the form field should be added, FALSE otherwise.

Overrides ContentEntityForm::showRevisionUi

File

src/Form/ProfileForm.php, line 13

Class

ProfileForm

Namespace

Drupal\profile\Form

Code

protected function showRevisionUi() {

  /** @var \Drupal\profile\Entity\ProfileTypeInterface $profile_type */
  $profile_type = $this->entityTypeManager
    ->getStorage('profile_type')
    ->load($this->entity
    ->bundle());
  return $profile_type
    ->showRevisionUi();
}