Closed (fixed)
Project:
White label entity type
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2017 at 15:33 UTC
Updated:
6 Apr 2017 at 14:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
fagoNoted that this is already there, but we need this to be configurable by bundle.
Comment #3
archnode commentedI added the possibility to enable the entity pages based on a setting in entity type.
In the EntityList Builder i changed the link on the title back to the entity page if it's activated to be consistent with the other listings.
Comment #4
fagoThanks - here a review:
That needs work.
Needs to use a dependency-injected EntityTypeManager. But easier way to do it would be $while_entity->type->entity
No, that's not an entity key- do not add this here.
Missing trailing point.
bool
A default value would make sense to me here - what's the default?
Missing trailing point.
Whitespace.
bool
that seems not what the code does.
Whitespace.
Comment #5
archnode commentedUpdated the patch, thanks for the review! I added a conditional redirect for entity form to avoid redirecting the user to an access denied.
Comment #6
fagowhitespace here
Missing description
Missing NL before @return. AccessResult needs a fully qualified namespace.
Whitespace (space char)
Missing description.
Nope - changing entity content is done in buildEntity(). However, in this case this might even work without any custom code?
This needs to be injected.
currentUser needs to be injected
whitespace
Comment #7
archnode commentedI adressed the issues in this updated patch.
Comment #8
archnode commentedForgot to change status!
Comment #10
fagothx, committed.