Skip to content

Commit

Permalink
Add missing links to bootstrap script documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntimeX committed Jun 19, 2024
1 parent 7fc2c75 commit 0fb4040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/package/acp-menu-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The API for the ACP menu items allows you to add your own menu items in the admin panel for your package.

Since WoltLab Suite 6.1 you can attach an event listener to the `wcf\event\acp\menu\item\ItemCollecting` event inside a bootstrap script to lazily register your ACP menu items.
Since WoltLab Suite 6.1 you can attach an event listener to the `wcf\event\acp\menu\item\ItemCollecting` event inside a [bootstrap script](../package/bootstrap-scripts.md) to lazily register your ACP menu items.

The `register` method of the event expects an object of the type `wcf\system\menu\acp\AcpMenuItem` as a parameter. An `AcpMenuItem` object consists of the following parameters:

Expand Down
2 changes: 1 addition & 1 deletion docs/php/api/acp_dashboard_boxes.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class FooBox extends AbstractAcpDashboardBox {

## Register a Custom Box

You can attach an event listener to the `wcf\event\acp\dashboard\box\BoxCollecting` event inside a bootstrap script to lazily register custom boxes.
You can attach an event listener to the `wcf\event\acp\dashboard\box\BoxCollecting` event inside a [bootstrap script](../../package/bootstrap-scripts.md) to lazily register custom boxes.
The class name of the box is registered using the event’s `register()` method:

```php title="files/lib/bootstrap/com.example.bar.php"
Expand Down

0 comments on commit 0fb4040

Please sign in to comment.