Problem/Motivation

\Drupal\auto_entitylabel\Form\AutoEntityLabelForm has:

  • Some unused use statements
  • Some minimally-documented properties
  • Some unnecessary @var comments
  • A @codingStandardsIgnoreLine directive
  • A docblock that refers to an older name for the class
  • A multi-line comment that does not conform to coding standards
  • A @TODO statement that suggests that a config factory is being used incorrectly.

Proposed resolution

Fix these issues.

Remaining tasks

  1. Submit a patch
  2. Review and feedback
  3. RTBC and feedback from maintainer
  4. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

mparker17 created an issue. See original summary.

mparker17’s picture

Assigned: mparker17 » Unassigned
Issue summary: View changes
Status: Active » Needs work
StatusFileSize
new8.52 KB

Here is a patch that fixes the following issues reported in the original issue summary:

  • Some unused use statements
  • Some minimally-documented properties
  • Some unnecessary @var comments
  • A @codingStandardsIgnoreLine directive
  • A docblock that refers to an older name for the class
  • A multi-line comment that does not conform to coding standards

Still to do:

  • A @TODO statement that suggests that a config factory is being used incorrectly.
mparker17’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new8.56 KB
new1.24 KB

Turns out the last item was really easy because \Drupal\Core\Form\FormBase defines its own interface for accessing the configuration factory.

mparker17’s picture

Status: Needs review » Postponed
Related issues: +#2923876: Broken when provider !=entityTypeId

Looking 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.

pancho’s picture

Re-rolled against latest dev with #2923876-28: Broken when provider !=entityTypeId rolled in.

dww’s picture

Status: Postponed » Needs work
Issue tags: +Needs reroll

No 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.

mparker17’s picture

@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.

shubham.prakash’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev
Status: Needs work » Needs review
StatusFileSize
new7.97 KB

Added reroll for latest dev branch..

ajits’s picture

Issue tags: -Needs reroll

Removing the tag as the patch was rerolled.

spokje’s picture

Assigned: Unassigned » spokje
Status: Needs review » Needs work
spokje’s picture

Assigned: spokje » Unassigned
spokje’s picture