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.
I was trying to wrap my head around this, but I'm pretty sure it's just not needed.
In block.routing.yml, block.admin_display provides an entity_type argument, but BlockListController overrides EntityListController::listing, removing entity_type from the arguments.
I tested by removing the argument and clearing cache. The admin display continued to load fine.
Comment | File | Size | Author |
---|---|---|---|
extra_block_routing_arg.patch | 445 bytes | mmilano | |
Comments
Comment #1
mmilano CreditAttribution: mmilano commentedComment #2
jibran@mmilano thanks nice catch.
Comment #3
alexpottYes we can do this. However, all other entity list controllers use the entity_type key so I'm not sure we want to do this.
Assigning to Tim for a second opinion.
Comment #4
tim.plunkett+1 for RTBC, that is not needed, and was left over from refactoring.
Comment #5
tim.plunkettComment #6
webchickCommitted and pushed to 8.x. Thanks!