This issue has novice tasks. If you are an experienced core developer and have multiple commit mentions, please review novices' work on these tasks rather than doing them yourself. Feedback from experienced contributors is valued.
Problem/Motivation
In #2005716: Promote EntityType to a domain object we started to rename all $entity_info to $entity_type. In comment_views_data_alter() we still use foreach (\Drupal::entityManager()->getDefinitions() as $entity_type => $entity_info) {
Proposed resolution
Change $entity_type to $entity_type_id and $entity_info to $entity_type in comment_views_data_alter()
Remaining tasks
- Write patch (novice)
- Review patch to check it fixes the issue, the change is properly documented and for coding standards. Provide test evidence (novice)
- Keep issue summary up to date (novice)
User interface changes
None
API changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 2201167-comment-view-data-alter-1.patch | 3.05 KB | sidharthap |
Comments
Comment #1
sidharthapHere is a patch. The test passed on local environment.
Comment #2
longwaveLooks good, passes tests.
Comment #3
alexpott2201167-comment-view-data-alter-1.patch no longer applies.
Comment #4
longwaveHuh? Seems fixed to me: http://drupalcode.org/project/drupal.git/commitdiff/6c1f8ce
Comment #5
alexpottYep I committed the patch and forgot to update the status. Thanks @longwave!