From c3d75ea162430ea78e2cdabb8725a0aea43549e1 Mon Sep 17 00:00:00 2001 From: bt-nn <95690155+bt-nn@users.noreply.github.com> Date: Tue, 16 Dec 2025 14:50:53 +0100 Subject: [PATCH] allow EasyCorp\Bundle\EasyAdminBundle\Config\Action::asTextLink(false) Previously, Action::asTextLink() only applied when the parameter was true. Passing false had no effect, leaving the Delete action always rendered as a text link. With this change, false is now explicitly supported. This allows developers to disable text links for actions such as DELETE on the index page. This provides a workaround for issue #7120. Example usage: public function configureActions(Actions $actions): Actions { return $actions->update(CRUD::PAGE_INDEX, Action::DELETE, function (Action $action) { return $action->asTextLink(false); }); } --- src/Config/Action.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Config/Action.php b/src/Config/Action.php index 4a02b7d520..ff666e9059 100644 --- a/src/Config/Action.php +++ b/src/Config/Action.php @@ -380,6 +380,8 @@ public function asTextLink(bool $asTextLink = true): self { if ($asTextLink) { $this->dto->setStyle(ButtonStyle::Text); + } else { + $this->dto->setStyle(ButtonStyle::Solid); } return $this;