} /**
* Should new revisions created on default.
*
* @return bool
* New revision on default.
*/
protected function getNewRevisionDefault() { $new_revision_default = FALSE;
$bundle_entity =
$this->
getBundleEntity();
if ($bundle_entity instanceof RevisionableEntityBundleInterface
) { // Always use the default revision setting.
$new_revision_default =
$bundle_entity->
shouldCreateNewRevision();
} return $new_revision_default;
} /**
* Checks whether the revision form fields should be added to the form.
*
* @return bool
* TRUE if the form field should be added, FALSE otherwise.
*/