Actions service.  
 More...
Actions service. 
Definition at line 20 of file ActionsService.php.
◆ __construct()
◆ exists()
      
        
          | Elgg\ActionsService::exists | ( | string | $action | ) |  | 
      
 
 
◆ getAllActions()
      
        
          | Elgg\ActionsService::getAllActions | ( |  | ) |  | 
      
 
 
◆ register()
      
        
          | 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 routeoptions: additional route options |  
 
- Returns
- void 
- Exceptions
- 
  
  
Definition at line 53 of file ActionsService.php.
 
 
◆ unregister()
      
        
          | Elgg\ActionsService::unregister | ( | string | $action | ) |  | 
      
 
 
◆ ACCESS_LEVELS
  
  | 
        
          | const Elgg\ActionsService::ACCESS_LEVELS = ['public', 'logged_in', 'logged_out', 'admin'] |  | protected | 
 
 
◆ UNPROTECTED_ACTIONS
  
  | 
        
          | 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: