Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::showRevisionUi()
  2. 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::showRevisionUi()

Indicates 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 EntityTypeInterface::showRevisionUi

File

core/lib/Drupal/Core/Entity/EntityType.php, line 706

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function showRevisionUi() {
  return $this
    ->isRevisionable() && $this->show_revision_ui;
}