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