Skip to content

Commit

Permalink
Add URL back from DTO when getting config object
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosprotung committed Apr 17, 2024
1 parent 4daee20 commit 7691f60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Dto/ActionDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ public function getAsConfigObject(): Action
$action->linkToRoute($this->routeName, $this->routeParameters);
}

if (null !== $this->url) {
$action->linkToUrl($this->url);
}

if (null !== $this->displayCallable) {
$action->displayIf($this->displayCallable);
}
Expand Down

0 comments on commit 7691f60

Please sign in to comment.