Group tools service.  
 More...
Group tools service. 
NOTE: This is part of the public Elgg Service DI 
Definition at line 13 of file Tools.php.
◆ __construct()
      
        
          | Elgg\Groups\Tools::__construct | ( | protected EventsService | $events | ) |  | 
      
 
Constructor. 
- Parameters
- 
  
  
Definition at line 25 of file Tools.php.
 
 
◆ all()
      
        
          | Elgg\Groups\Tools::all | ( |  | ) |  | 
      
 
Returns registered tools. 
- Returns
- Collection|Tool[] 
Definition at line 74 of file Tools.php.
 
 
◆ get()
      
        
          | Elgg\Groups\Tools::get | ( |  | $name | ) |  | 
      
 
Get a registered tool by its name. 
- Parameters
- 
  
  
- Returns
- Tool|null 
Definition at line 65 of file Tools.php.
 
 
◆ group()
      
        
          | Elgg\Groups\Tools::group | ( | \ElggGroup | $group | ) |  | 
      
 
Returns group specific tools. 
- Parameters
- 
  
  
- Returns
- Collection|Tool[] 
Definition at line 87 of file Tools.php.
 
 
◆ register()
      
        
          | Elgg\Groups\Tools::register | ( |  | $name, | 
        
          |  |  | array | $options = [] | 
        
          |  | ) |  |  | 
      
 
Adds a group tool option. 
- Parameters
- 
  
    | string | $name | Tool ID |  | array | $options | Tool config options |  
 
@option string $label Label to appear on the group edit form @option string $title Tool name @option bool $default_on Is the tool enabled by default? @option int $priority Module priority
- Returns
- void 
Definition at line 42 of file Tools.php.
 
 
◆ unregister()
      
        
          | Elgg\Groups\Tools::unregister | ( |  | $name | ) |  | 
      
 
Removes a group tool. 
- Parameters
- 
  
  
- Returns
- void 
Definition at line 55 of file Tools.php.
 
 
◆ $tools
  
  | 
        
          | Elgg\Groups\Tools::$tools |  | protected | 
 
 
The documentation for this class was generated from the following file: