Merge pull request #16894 from shankhadevpadam/4.x

Update 03-creating-records.md
This commit is contained in:
Dan Harrin
2025-07-09 15:21:34 +01:00
committed by GitHub
+2 -2
View File
@@ -118,13 +118,13 @@ protected function getCreatedNotification(): ?Notification
To disable the "create and create another" feature, define the `$canCreateAnother` property as `false` on the Create page class:
```php
protected bool $canCreateAnother = false;
protected static bool $canCreateAnother = false;
```
Alternatively, if you'd like to specify a dynamic condition when the feature is disabled, you may override the `canCreateAnother()` method on the Create page class:
```php
protected function canCreateAnother(): bool
public function canCreateAnother(): bool
{
return false;
}