Fix save action type

This commit is contained in:
Damilola Emmanuel Olowookere
2025-02-17 08:12:07 +00:00
committed by GitHub
parent ef4b6bdd95
commit 58a33537bd
@@ -305,7 +305,7 @@ To view the entire actions API, please visit the [pages section](../pages#adding
### Adding a save action button to the header
The "Save" button can be moved to the header of the page by overriding the `getHeaderActions()` method and using `getSaveFormAction()`. You need to pass `formId()` to the action, to specify that the action should submit the form with the ID of `form`, which is the `<form>` ID used in the view of the page:
The "Save" button can be added to the header of the page by overriding the `getHeaderActions()` method and using `getSaveFormAction()`. You need to pass `formId()` to the action, to specify that the action should submit the form with the ID of `form`, which is the `<form>` ID used in the view of the page:
```php
protected function getHeaderActions(): array