function ContentEntityForm::showRevisionUi
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::showRevisionUi()
- 8.9.x core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::showRevisionUi()
- 10 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 478
Class
- ContentEntityForm
- Entity form variant for content entity types.
Namespace
Drupal\Core\EntityCode
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.