function ContentEntityForm::showRevisionUi

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::showRevisionUi()

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.

File

core/lib/Drupal/Core/Entity/ContentEntityForm.php, line 478

Class

ContentEntityForm
Entity form variant for content entity types.

Namespace

Drupal\Core\Entity

Code

protected function showRevisionUi() {
  return $this->entity
    ->getEntityType()
    ->showRevisionUi();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.