Score:2

How to add Rabbit Hole to a custom content entity

kp flag

We use the module Rabbit Hole for nodes and terms. Now we would like to use it also for our custom content entities. I have tried to find some information, how to add the Rabbit Hole to a custom content entity. I have found some related information, but maybe there is some manual, which would be more specific.

I have found:

cn flag
You need to write a plugin of type `RabbitHoleEntityPlugin` (extending from [`RabbitHoleEntityPluginBase`](https://api.druphelp.com/api/rabbit_hole/src%21Plugin%21RabbitHoleEntityPluginBase.php/class/RabbitHoleEntityPluginBase/8)). There doesn't seem to be any documentation so going through the base class and instances in the submodules (rh_node, rh_taxonomy, rh_user, etc) seems like the best place to start
cn flag
Actually the best docs are probably the method comments in `RabbitHoleEntityPluginInterface`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.