Skip to content

Commit 66d17d1

Browse files
committedJan 4, 2025
minor #6612 doc: add explanation of custom action (alexislefebvre)
This PR was merged into the 4.x branch. Discussion ---------- doc: add explanation of custom action I used this as a reference: https://github.com/EasyCorp/EasyAdminBundle/blob/2307da58ccfd0569f65943b9a01d49a4f3a71d7d/doc/dashboards.rst?plain=1#L21-L23 Commits ------- 4cd615b doc: add explanation of custom action
2 parents bd70f3b + 4cd615b commit 66d17d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎doc/actions.rst

+6
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,11 @@ The following example shows all kinds of actions in practice::
431431
}
432432
}
433433

434+
.. tip::
435+
436+
``renderInvoice()`` behave like ``Symfony controllers`_,
437+
so you can do anything you usually do in a controller.
438+
434439
Custom actions can define the ``#[AdminAction]`` attribute to
435440
:ref:`customize their route name, path and methods <crud_routes>`::
436441

@@ -720,3 +725,4 @@ by EasyAdmin::
720725
}
721726

722727
.. _`FontAwesome`: https://fontawesome.com/
728+
.. _`Symfony controllers`: https://symfony.com/doc/current/controller.html

0 commit comments

Comments
 (0)
Please sign in to comment.