Set up Rabbit Hole for Entities that Should not Be Accessible to the End User
Introduction
Rabbit Hole module allows us to restrict access for site visitors to the helper entity types that aren’t meant to be accessible by users other than site editors and admins.
Decision
Set up the Rabbit Hole module for all helper entities: non-standalone content types (e.g., FAQs, component content types), taxonomy listing pages that are not in use, and users if end users are not meant to access their profiles. Set the default to 403. Allow individual override per entity.
Context
On Drupal websites we often have content types, taxonomies and other entity types that are helper types and aren’t meant to be used as stand-alone pages. We don’t want to spend time styling them and making those pages accessible since they don’t provide any additional information to the end user.
Consequences
- Helper entities will not be accessible to the end user.
- The team will not need to worry about front-end and accessibility work done to these entities.
Exceptions
Individual entities can be exempt as per site's requirements.
Additional Resources
None