Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::showRevisionUi()
- 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\EntityCode
public function showRevisionUi() {
return $this
->isRevisionable() && $this->show_revision_ui;
}