function ContentEntityForm::showRevisionUi

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::showRevisionUi()
  2. 8.9.x core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::showRevisionUi()
  3. 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
ContentEntityForm::form in core/lib/Drupal/Core/Entity/ContentEntityForm.php
ContentEntityForm::prepareEntity in core/lib/Drupal/Core/Entity/ContentEntityForm.php

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.