Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
From the original port issue:
- Entity pages should not be provided in the first step, or be configurable on the while bundle level
Comment | File | Size | Author |
---|---|---|---|
#7 | add_enable_pages-2858154-7.patch | 8.44 KB | archnode |
#5 | add_enable_pages-2858154-5.patch | 6.86 KB | archnode |
#3 | add_enable_pages-2858154-3.patch | 6.14 KB | archnode |
Comments
Comment #2
fagoNoted that this is already there, but we need this to be configurable by bundle.
Comment #3
archnode CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: archnode commentedI adressed the issues in this updated patch.
Comment #8
archnode CreditAttribution: archnode commentedForgot to change status!
Comment #10
fagothx, committed.