Skip to content

Commit d0c54ab

Browse files
committed
Extract HasContentFormActions into separate file
Move the marker trait HasContentFormActions out of ContentFormTrait into its own file (src/Base/Filament/Concerns/HasContentFormActions.php) and have ContentFormTrait continue to use it. This separates the marker trait for clarity and reuse so Filament's cacheTraitActions can call cacheHasContentFormActions before cacheMountedActions runs. No functional behavior intended to change.
1 parent eab985b commit d0c54ab

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

src/Base/Filament/Concerns/ContentFormTrait.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,10 @@
2828

2929
use function Filament\Support\is_app_url;
3030

31-
/**
32-
* Marker trait — enables Filament's cacheTraitActions() to call
33-
* cacheHasContentFormActions() before cacheMountedActions() runs,
34-
* so extra status actions are in cachedActions in time.
35-
*/
36-
trait HasContentFormActions {}
37-
3831
trait ContentFormTrait
3932
{
4033
use HasContentFormActions;
41-
34+
4235
protected ?string $publishOperation = null;
4336

4437
/**
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace SolutionForest\InspireCms\Base\Filament\Concerns;
4+
5+
/**
6+
* Marker trait — enables Filament's cacheTraitActions() to call
7+
* cacheHasContentFormActions() before cacheMountedActions() runs,
8+
* so extra status actions are in cachedActions in time.
9+
*/
10+
trait HasContentFormActions {}

0 commit comments

Comments
 (0)