Problem/Motivation

In the .module file, there are some functions that only are important to the module (and not for others) that not are hook implementations, this functions should be in another file as they are Utility functions that can be used on other files inside the module. You can find more about this in Where to place the utility and internal functions for a custom module?

Proposed resolution

Create the InternalFunctions class inside the Drupal\MODULE_NAME\Utility namespace and put inside all the module internal functions that not are hooks implementations.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

adriancid created an issue. See original summary.

  • adriancid committed 78d4eaa on 8.x-1.x
    Issue #2941747 by adriancid: Put the internal utility functions in...
adriancid’s picture

Version: 7.x-3.x-dev » 8.x-1.x-dev

  • adriancid committed d101247 on 8.x-1.x
    Issue #2941747 by adriancid: Put the internal utility functions in...

  • adriancid committed cba8a02 on 7.x-3.x
    Issue #2941747 by adriancid: Put the internal utility functions in...
adriancid’s picture

Status: Active » Fixed

  • adriancid committed f26a4ae on 7.x-3.x
    Issue #2941747 by adriancid: Put the internal utility functions in...

Status: Fixed » Closed (fixed)

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

adriancid’s picture

Category: Task » Feature request