nwalty
Best way to determine which resource a select component is currently being rendered on
This does work yes but wasn't necessarily the goal. The issue is when using RelationManager, if you try to use the EntityRoleResource directly, the reference to RelationManager causes a fatal error. So the goal was to come up with a way without repeating code to provide the form with context of where it is being accessed and to adjust the available options accordingly.
Now I could make an arguement that directly accessing EntityRoleResource isnt absolutely necessary.
4 replies