[Enhancement] Use a Services to Allow Other Modules to Reliably Override

Created on 16 September 2022, over 2 years ago
Updated 27 July 2023, over 1 year ago

Problem/Motivation

Hooks make the implementation details hard to reliably override. This change allows other modules to create another service to subclass/override methods defined in your module.

My specific use case is around the user query. I only wanted to count certain roles to be able to be registered.

Proposed resolution

The proposed patch moves the implementation details into a service which allows others to override.

Remaining tasks

-

Other changes

I applied the patch in 2997455 (to align with good coding standards)
I also updated how the users are queried using an entity query approach versus the SelectInterface.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

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