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.
// @todo Use a placeholder for the entity label if this is abstracted to
// other entity types.
Regardless if it is or is not abstracted, using a placeholder means we don't have to hardwire in a constant, which means the code is more maintainable. So I think this should be done and the @todo removed.
Comment | File | Size | Author |
---|---|---|---|
#9 | 3034254-9-remove-views-list-builder-todo.patch | 667 bytes | TR |
remove-views-list-builder-todo.patch | 997 bytes | TR | |
Comments
Comment #2
TR CreditAttribution: TR commentedComment #3
pratik.mehta19 CreditAttribution: pratik.mehta19 as a volunteer commentedComment #5
TR CreditAttribution: TR commentedThe test fail in #4 was a temporary failure in the core quickedit module tests, unrelated to this patch.
That fail has now gone away, as can be seen by the retest and test history in the original post.
Resetting status.
Comment #6
alexpottThis same text can be be found in \Drupal\views_ui\Controller\ViewsUIController::reportPlugins - we should keep the translations aligned so translators have less strings.
Comment #7
TR CreditAttribution: TR commentedViewsUIController::reportPlugins() currently only looks at the plugin definitions and doesn't access the configuration entities, so pulling in the entities just to get the @label would be silly. I don't think that string should be changed.
@alexpott: So what's your suggestion? Should we just delete the @todo and leave the string as it is?
Comment #8
naveenvalechaI have looked at the previous issue where this todo was added [#183082] based on the assumption(see comment #38) that there would be the plural labels for the entity. However, we don't need singular in both texts. So shouldn't we just remove the @todo?
#7 +1 to it.
Comment #9
TR CreditAttribution: TR commentedOK, I read through that other issue. Here's a new patch just removing the @todo
Comment #10
naveenvalechaLooks good to me.
Marking RTBC based on the assumption that the @alexpott would have the same thoughts after #8
Comment #12
alexpottComment #13
alexpottCommitted and pushed a1f4e9f043 to 8.8.x and c910d64ac9 to 8.7.x. Thanks!
As a documentation fix backported to 8.7.x