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
Namespace
Drupal\profile\FormCode
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();
}