|
| add_action (string $identifier, ?action_link $action, ?string $category=null) |
| To be called by callback to add an action to the bulk user actions menu.
|
|
| find_action_category (string $identifier) |
| Allows to locate an action by the identifier.
|
|
| get_actions () |
| Returns all actions groupped by category.
|
|
◆ add_action()
core_user\hook\extend_bulk_user_actions::add_action |
( |
string | $identifier, |
|
|
?action_link | $action, |
|
|
?string | $category = null ) |
To be called by callback to add an action to the bulk user actions menu.
Callbacks with higher priority will be called first and actions they added will be displayed first. Callbacks with lower priority can override actions added by callbacks with higher priority.
To prevent accidental overrides plugins should prefix the action identifier with the plugin name.
- Parameters
-
string | $identifier | Unique key for the action, recommended to prefix with plugin name |
action_link | null | $action | an object containing the action URL and text, other properties are ignored. Can be set to null to remove an action added by somebody else. |
?string | $category | Label for the option group in the action select dropdown |
◆ find_action_category()
core_user\hook\extend_bulk_user_actions::find_action_category |
( |
string | $identifier | ) |
|
Allows to locate an action by the identifier.
This method returns the option group label. The action itself can be found as: $category = $this->find_action_category($identifier); $action = $this->get_actions()[$category][$identifier];
- Parameters
-
- Return values
-
◆ get_actions()
core_user\hook\extend_bulk_user_actions::get_actions |
( |
| ) |
|
Returns all actions groupped by category.
- Return values
-
◆ get_deprecated_plugin_callbacks()
static core_user\hook\extend_bulk_user_actions::get_deprecated_plugin_callbacks |
( |
| ) |
|
|
static |
◆ get_hook_description()
static core_user\hook\extend_bulk_user_actions::get_hook_description |
( |
| ) |
|
|
static |
◆ get_hook_tags()
static core_user\hook\extend_bulk_user_actions::get_hook_tags |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file:
- user/classes/hook/extend_bulk_user_actions.php