Problem/Motivation

The documentation for Drupal\statistics\StatisticsSettingsForm::__construct() incorrectly says it constructs a Drupal\user\StatisticsSettingsForm object, which is the wrong module namespace.

Proposed resolution

Update core/modules/statistics/src/StatisticsSettingsForm file. The docblock for should say:

Constructs a \Drupal\statistics\StatisticsSettingsForm object.

Remaining tasks

Write a short patch!

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andrewmacpherson created an issue. See original summary.

andrewmacpherson’s picture

Issue tags: +Novice, +Documentation

Expecting a one-line patch, so this is a good issue for a first-time contributor.

Ada Hernandez’s picture

Status: Active » Needs review
FileSize
644 bytes

@andrewmacpherson thks, I've fixed the comments

andrewmacpherson’s picture

Status: Needs review » Reviewed & tested by the community
amit.drupal’s picture

Patch are working fine.

Wim Leers’s picture

Issue tags: +Trivial patch of the month

@amit.drupal: such screenshots are not helpful. In fact, they're a distraction, because you have to open them separately. They're a waste of storage space on d.o. Instead of posting screenshots, just post a textual comment.
Also, I strongly suspect this is a way to game the issue credit system. Because you're automatically being credited because you posted files. I've seen you do it in many places, and by inspecting your prior posts, I can see that this is the majority of what you do.

Core committer, please revoke @amit.drupal's issue credit.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed b8f16bb to 8.4.x and 77a496d to 8.3.x. Thanks!

  • alexpott committed b8f16bb on 8.4.x
    Issue #2868442 by Adita: Wrong namespace in StatisticsSettingsForm...

  • alexpott committed 77a496d on 8.3.x
    Issue #2868442 by Adita: Wrong namespace in StatisticsSettingsForm...
amit.drupal’s picture

@Wim Leers
Apologies about that. I am not aware on the drupal.org conventions to post comments / screen-shots.
I will go to the relevant drupal.org Slack channels to get guidance on how to go about resolving core issues.

Wim Leers’s picture

It is helpful to post screenshots of how a UI (User Interface) changes. You did that several times in the patch. It's not useful to post screenshots of how code changes. That is all!

Looking forward to your next patches (I see you've created patches in the past!) :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.