Problem/Motivation
\Drupal\auto_entitylabel\Form\AutoEntityLabelForm has:
Some unusedusestatementsSome minimally-documented propertiesSome unnecessary@varcommentsA@codingStandardsIgnoreLinedirectiveA docblock that refers to an older name for the classA multi-line comment that does not conform to coding standardsA@TODOstatement that suggests that a config factory is being used incorrectly.
Proposed resolution
Fix these issues.
Remaining tasks
Submit a patch- Review and feedback
- RTBC and feedback from maintainer
- Commit
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 2945361-8.patch | 7.97 KB | shubham.prakash |
| #5 | auto_entitylabel-2945361-5-cleanup-AutoEntityLabelForm.patch | 9.37 KB | pancho |
| #3 | 2945361-3-cleanup-AutoEntityLabelForm.patch | 8.56 KB | mparker17 |
Comments
Comment #2
mparker17Here is a patch that fixes the following issues reported in the original issue summary:
usestatements@varcomments@codingStandardsIgnoreLinedirectiveStill to do:
@TODOstatement that suggests that a config factory is being used incorrectly.Comment #3
mparker17Turns out the last item was really easy because
\Drupal\Core\Form\FormBasedefines its own interface for accessing the configuration factory.Comment #4
mparker17Looking at #2923876: Broken when provider !=entityTypeId in depth; the changes made in this patch will conflict with the changes in that issue. Since the proposed changes in that issue fix broken functionality; while the changes in this issue do not, I feel it can be postponed until 2923876 is merged — once that happens, it is possible we can simply close this issue.
Comment #5
panchoRe-rolled against latest dev with #2923876-28: Broken when provider !=entityTypeId rolled in.
Comment #6
dwwNo longer applies to 8.x-2.x nor 8.x-3.x.
Interested in getting this in first to make #2945387: Support entities without bundles (User, etc.) easier to review / test.
Comment #7
mparker17@dww I'd be happy to help, but I only have paid contribution time on Friday afternoons. I'll add it to my queue for then.
Comment #8
shubham.prakash commentedAdded reroll for latest dev branch..
Comment #9
ajitsRemoving the tag as the patch was rerolled.
Comment #10
spokjeComment #11
spokjeComment #12
spokjeLet's first get #3220398: Fix Coding Standard Messages in.