Problem/Motivation

Implement OOP hooks for better OOP & DI support, instead of having all hook logic in the module file.

Proposed resolution

Convert hook implementations to OOP hooks, with backwards compatibility.
See https://www.drupal.org/node/3442349

Remaining tasks

- Define hooks that can be converted into OOP hooks
- Create hook clas(ses) to logically bundle relevant hooks with their logic
- Add backwards compatibility support

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Issue fork timepicker-3548340

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

danrod created an issue. See original summary.

danrod’s picture

Assigned: Unassigned » danrod
danrod’s picture

Assigned: danrod » Unassigned
Issue tags: +Novice
miroslavstankov’s picture

Assigned: Unassigned » miroslavstankov

I will start working on this.

miroslavstankov’s picture

Assigned: miroslavstankov » Unassigned
Status: Active » Needs review
danrod’s picture

Hi @miroslavstankov , could you create the MR agains the 3.0.x branch? Thanks !

danrod’s picture

Status: Needs review » Needs work
ritarshi_chakraborty’s picture

Working on it.

ritarshi_chakraborty’s picture

Status: Needs work » Needs review
danrod’s picture

Thanks @ritarshi_chakraborty tested and works as expected, I'll merge it to the 3.0.x branch.

danrod’s picture

Status: Needs review » Reviewed & tested by the community

danrod’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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