You are here

protected function ContentEntityForm::showRevisionUi in Drupal 8

Same name and namespace in other branches
  1. 9 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.

3 calls to ContentEntityForm::showRevisionUi()
ContentEntityForm::buildEntity in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Builds an updated entity object based upon the submitted form values.
ContentEntityForm::form in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Gets the actual form array to be built.
ContentEntityForm::prepareEntity in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Prepares the entity object before the form is built first.

File

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

Class

ContentEntityForm
Entity form variant for content entity types.

Namespace

Drupal\Core\Entity

Code

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