Made everything have revisions all the time

This commit is contained in:
2022-04-03 17:01:19 +01:00
parent 13ddf5aa13
commit c3f802835f
7 changed files with 19 additions and 65 deletions

View File

@ -38,8 +38,6 @@ class OCActorForm extends ContentEntityForm {
*/
public function save(array $form, FormStateInterface $form_state) {
$entity = $this->entity;
// Always make a new revision for a person. They are not changed often and people are likely to
// want to know what has happened to them over time.
$entity->setNewRevision();
$entity->setRevisionCreationTime(REQUEST_TIME);
$entity->setRevisionUserId(\Drupal::currentUser()->id());