Closed (fixed)
Project:
Rabbit Hole
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2017 at 08:08 UTC
Updated:
11 Oct 2017 at 01:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drupalgideonThis seemed too easy!
rh_group.module
rh_group.info.yml
src/Plugin/RabbitHoleEntityPlugin/Group.php
Comment #3
drupalgideonComment #4
drupalgideonComment #5
imyaro commentedWhy do this module has to have dependency from the "group" module?
It seems meanless.
It will be great if you will add a support, but support through depencency for so big and popular module is bad idea.
Comment #6
dylan donkersgoed commentedIt's just a submodule so I think having group as a dependency is fine and makes sense. I think if group wasn't enabled along with this module nothing *bad* would actually happen (it just wouldn't do anything) but it wouldn't be very intuitive.
I made two minor changes:
- I changed the human readable name and description to just refer to "group" rather than "group entity". I think that just came from it being copied from the media_entity module, but that's just because the actual module name has it. It's not necessary in most cases.
- I fixed the hook in the rh_group.module file to begin with rh_group rather than rh_media - this probably would've caused some issues with per-entity overrides
Aside from that this looks good. I'll merge it into dev now and it'll be in the next beta release. Thanks for the patch.