Skip to content

Commit 56a8731

Browse files
committed
Remove hook naming convention that conflicts with the policy
The naming convention for hooks has been decided in MDL-79077. The statement that hook classes should follow the standard pattern of general to more specific conflicts with the policy that is on the `Hook policies` section. It is better to remove it to avoid confusion.
1 parent c4497ef commit 56a8731

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/apis/core/hooks/index.md

-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ Information passed between subsystem and plugins is encapsulated in arbitrary PH
6464
These can be in any namespace, but generally speaking they should be placed in the `some_component\hook\*`
6565
namespace. Where possible, hooks are expected to implement the `core\hook\described_hook` interface.
6666

67-
The names of hook classes should follow the standard pattern of general to more specific, this groups
68-
hooks for the same item when sorting alphabetically. For example `core\hook\course_delete_pre` instead
69-
of `pre_course_delete`.
70-
7167
### Hook callback
7268

7369
The code executing a hook does not know in advance which plugin is going to react to a hook.

0 commit comments

Comments
 (0)