Actions service.
More...
Actions service.
Definition at line 20 of file ActionsService.php.
Elgg\ActionsService::exists |
( |
string |
$action | ) |
|
Elgg\ActionsService::getAllActions |
( |
| ) |
|
Elgg\ActionsService::register |
( |
string |
$action, |
|
|
string |
$handler = '' , |
|
|
string |
$access = 'logged_in' , |
|
|
array |
$params = [] |
|
) |
| |
Registers an action.
- Parameters
-
string | $action | The name of the action (eg "register", "account/settings/save") |
string | $handler | Optionally, the filename where this action is located. If not specified, will assume the action is in elgg/actions/<action>.php |
string | $access | Who is allowed to execute this action: public, logged_in, logged_out, admin. (default: logged_in) |
array | $params | Additional params for the action route registration:
- middleware: additional middleware on the action route
|
- Returns
- void
- Exceptions
-
Definition at line 52 of file ActionsService.php.
Elgg\ActionsService::unregister |
( |
string |
$action | ) |
|
const Elgg\ActionsService::ACCESS_LEVELS = ['public', 'logged_in', 'logged_out', 'admin'] |
|
protected |
const Elgg\ActionsService::UNPROTECTED_ACTIONS = ['logout'] |
|
protected |
Actions for which CSRF firewall should be bypassed.
Definition at line 27 of file ActionsService.php.
The documentation for this class was generated from the following file: