diff --git a/modules/rh_taxonomy/rh_taxonomy.info.yml b/modules/rh_taxonomy/rh_taxonomy.info.yml new file mode 100644 index 0000000..384481c --- /dev/null +++ b/modules/rh_taxonomy/rh_taxonomy.info.yml @@ -0,0 +1,7 @@ +name: Rabbit Hole taxonomy +type: module +description: Adds Rabbit Hole functionality for taxonomy. +core: 8.x +dependencies: + - rabbit_hole + - taxonomy diff --git a/modules/rh_taxonomy/rh_taxonomy.module b/modules/rh_taxonomy/rh_taxonomy.module new file mode 100644 index 0000000..3bde911 --- /dev/null +++ b/modules/rh_taxonomy/rh_taxonomy.module @@ -0,0 +1,11 @@ +id() == 'taxonomy_term') { + return \Drupal::service('rabbit_hole.entity_extender') + ->getRabbitHoleFields('taxonomy_term'); + } +} diff --git a/modules/rh_taxonomy/src/Plugin/RabbitHoleEntityPlugin/Taxonomy.php b/modules/rh_taxonomy/src/Plugin/RabbitHoleEntityPlugin/Taxonomy.php new file mode 100644 index 0000000..7e4550f --- /dev/null +++ b/modules/rh_taxonomy/src/Plugin/RabbitHoleEntityPlugin/Taxonomy.php @@ -0,0 +1,31 @@ +