Put inside the modules_weight service the modulesList() utility function

Created on 30 November 2017, almost 7 years ago
Updated 17 April 2024, 7 months ago

Problem/Motivation

As discussed in When should I create a service or a utility function? all the functions that use Drupal services should be inside a service . This was made in #2926907: Put the modulesList utility function inside the modules_weight service but the Utility function was created again in #2926915: Made the getModulesList() method more generic now after the 4k4 comments it seems that the best ways is have the two functions inside the modules_weight services.

Proposed resolution

Pass the modulesList() utility function to the modules_weight service.

Remaining tasks

None.

User interface changes

None.

API changes

A new method modulesList() is available inside the modules_weight service. And the modulesList() utility function will no longer exists.

Data model changes

None.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada adriancid Montreal, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024