Skip to content

Commit

Permalink
Allow setting of link outside constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Mar 27, 2024
1 parent b9fefa1 commit 770434b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/UI/Actions/Controls/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ public function __construct(
}


public function setLink(Link|string $link): void
{
$this->link = $link;
}


public function create(): Html
{
$label = $this->translator?->translate($this->label) ?? $this->label;
Expand Down

0 comments on commit 770434b

Please sign in to comment.