We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa8b710 commit 9f76823Copy full SHA for 9f76823
src/Dto/ActionGroupDto.php
@@ -30,6 +30,19 @@ final class ActionGroupDto
30
private ButtonStyle $style = ButtonStyle::Solid;
31
private bool $hasAnyActionWithIcon = false;
32
33
+ public function __clone(): void
34
+ {
35
+ if (null !== $this->mainAction) {
36
+ $this->mainAction = clone $this->mainAction;
37
+ }
38
+
39
+ foreach ($this->items as $index => $item) {
40
+ if ($item instanceof ActionDto) {
41
+ $this->items[$index] = clone $item;
42
43
44
45
46
// A utility method for Twig templates that deal with actions and action groups
47
public function isActionGroup(): bool
48
{
0 commit comments