Page MenuHomePhabricator

Allow extensions to define blockable actions
Closed, ResolvedPublic3 Estimated Story Points

Description

Following the introduction of a service to define blockable actions in T279556, extensions may want to be able to define blockable actions. (For example T242785: Allow a user to be blocked from sending thanks.)

We can allow this by introducing a hook in the service's getAllBlockActions method.

An example of how the hook might be implemented can be found in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/615837

Event Timeline

Change 681005 had a related patch set uploaded (by STran; author: STran):

[mediawiki/core@master] [WIP] Add onGetAllBlockActions hook

https://gerrit.wikimedia.org/r/681005

Change 681005 merged by jenkins-bot:

[mediawiki/core@master] Add GetAllBlockActions hook

https://gerrit.wikimedia.org/r/681005