Problem/Motivation
The contributed module Rabbit Hole allows you to prevent entity pages like "/storage/1" from being publicly accessible. To use Rabbit Hole with a particular entity type, a bridge module must be enabled to provide support for that entity.
Proposed resolution
Create an integration module for Rabbit Hole and Storage.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | storage-3220934-2-rabbit_hole.patch | 1.81 KB | les lim |
Comments
Comment #2
les limPatch attached.
Comment #3
mandclu commentedI don't mind integration with rabbit hole, but maybe instead we should have a permission to view storage entities, per bundle?
Comment #4
les limSure, that's a good feature for the base module. That doesn't necessarily replace the usefulness of Rabbit Hole integration; with Rabbit Hole, I can configure per-bundle redirects, so I could send people directly to a View that consumes those storage entities, for example. Rabbit Hole also lets you define behaviors on a per-entity basis, if you choose to let it be that granular.
Comment #5
les limIf you prefer, I can publish this to its own project namespace as well.
Comment #6
mandclu commentedGiven the small amount of code required, I'm actually thinking maybe this makes more sense directly in the main module.
Comment #8
mandclu commentedMerged in the code directly to the main module, with an added check if the rabbit hole service exists.