Most of Drupal use snake case for the variable naming convention.

The PHP code in configuration_update_hook.php.twig should also try to adhere to that as well.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

codebymikey created an issue. See original summary.

codebymikey’s picture

Status: Active » Needs review
StatusFileSize
new1.18 KB
paulocs’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new55.51 KB

RTBC. Good job @codebymikey.

codebymikey’s picture

StatusFileSize
new1021 bytes

Change the name from $updateHelper to $updater to be more accurate.

ilgnerfagundes’s picture

StatusFileSize
new215.64 KB

The patch continues to apply correctly.

codebymikey’s picture

Version: 8.x-1.x-dev » 2.x-dev
StatusFileSize
new1011 bytes

Rerolled for 2.x.

codebymikey’s picture

StatusFileSize
new1.15 KB

Fixed issue with multiple line breaks showing up, as well as ensuring that the newly created .install file meets Drupal's coding standards.

alexpott’s picture

FWIW Drupal allows camelCase or snake_case see https://www.drupal.org/project/coding_standards/issues/2648050

However there's no reason to not do this change.

alexpott’s picture

I've removed commit credit for @paulocs and @ilgnerfagundes because both screenshots are unnecessary.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

  • alexpott committed e2a9570 on 2.x authored by codebymikey
    Issue #3131228 by codebymikey: Use snake case in generated hook function
    

Status: Fixed » Closed (fixed)

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