HookOrder $class_and_method should be two arguments.

Created on 28 October 2024, about 2 months ago

Problem/Motivation

When testing conversion of core to OOP it was discovered that $class_and_method should really be two arguments.
This is still new and likely not converted yet so we should change this before we have to do BC dance.

Before

$class = WorkspacesHooks::class . '::';
HookOrder::first($container, 'entity_presave', $class . 'entityPresave');
HookOrder::last($container, 'entity_insert', $class . 'entityInsert');

After

$class = WorkspacesHooks::class . '::';
HookOrder::first($container, 'entity_presave', 'WorkspacesHooks', 'entityPresave');
HookOrder::last($container, 'entity_insert', 'WorkspacesHooks', 'entityInsert');

Steps to reproduce

Try converting hook ordering in workspaces to OOP.

Proposed resolution

Add new string parameter to HookOrder class for the method and update the logic to manage this.

Remaining tasks

User interface changes

N/A

Introduced terminology

N/A

API changes

N/A

Data model changes

HookOrder will have a new signature.

Release notes snippet

N/A

๐Ÿ“Œ Task
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component

base system

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States nicxvan

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024