$page->save()
Low-level method to save the model with the given data. Consider using ::update() instead.
$page->save(array|null $data = null, string|null $languageCode = null, bool $overwrite = false): Kirby\Cms\Page
Parameters
| Name | Type | Default |
|---|---|---|
| $data | arrayornull |
null
|
| $languageCode | stringornull |
null
|
| $overwrite | bool |
false
|
Return type
This method does not modify the existing $page object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Cms\Page
inherited from Kirby\Cms\ModelWithContent