protected function ApiDocForm::getNewRevisionDefault in Apigee API Catalog 8
Should new revisions created on default.
Return value
bool New revision on default.
Overrides ContentEntityForm::getNewRevisionDefault
File
- src/
Entity/ Form/ ApiDocForm.php, line 73
Class
- ApiDocForm
- Form controller for API Doc edit forms.
Namespace
Drupal\apigee_api_catalog\Entity\FormCode
protected function getNewRevisionDefault() {
/* @var \Drupal\apigee_api_catalog\Entity\ApiDoc $entity */
$entity = $this
->getEntity();
// Always use the default revision setting.
$new_revision_default = $entity
->shouldCreateNewRevision();
return $new_revision_default;
}