Skip to content

Instantly share code, notes, and snippets.

@wilfi
Last active June 16, 2021 16:58
Show Gist options
  • Save wilfi/7b2439b71c7cbefcb57cb9f6784ace48 to your computer and use it in GitHub Desktop.
Save wilfi/7b2439b71c7cbefcb57cb9f6784ace48 to your computer and use it in GitHub Desktop.

Taxonomy term revision

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • D.ORG MODULE REPOSITORY

INTRODUCTION

Taxonomy terms are revisionable since 8.7.x - https://www.drupal.org/node/2897789 And there is a UI for publishing/ unpublishing taxonomy terms - https://www.drupal.org/project/drupal/issues/2899923

However, there is limited support on 'Revision revert' and 'Revision delete' in core.

This module stores revisions for the taxonomy terms.

Whenever users saves or updates taxonomy terms it will create new revision for term as it works with nodes. This provides textarea field to fill a revision log message.

Also on the taxonomy term edit page a new menu tab appears after the module installation which will list all of the taxonomy term's revisions and provides two operations for each taxonomy term revisions:

  • revert: which will revert the revision.
  • delete: which will delete the revision.

Also the module is adding some handler class for taxonomy term to support workflow as it works for content types.

REQUIREMENTS

Drupal 8.7.x onwards.

INSTALLATION

CONFIGURATION

Nothing specific.

D.ORG MODULE REPOSITORY

https://git.drupalcode.org/project/taxonomy_term_revision

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment