From 7e7603f4809c70188b78d9ee7a9ea7bb47e6e1be Mon Sep 17 00:00:00 2001 From: Oliver Kossin Date: Thu, 25 Apr 2024 16:09:15 +0200 Subject: [PATCH] Extend Docs for Admin View Debug Command (#793) * Extend Docs for Admin View Debug Command * Update book/extend-admin.rst Co-authored-by: Prokyonn --------- Co-authored-by: Prokyonn --- book/extend-admin.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/book/extend-admin.rst b/book/extend-admin.rst index e92a0401..f7d9bdb1 100644 --- a/book/extend-admin.rst +++ b/book/extend-admin.rst @@ -421,8 +421,14 @@ Finally the ``View`` object has to be added to the ``ViewCollection``, which is ``configureViews`` method. This has been implemented like this to allow other bundles to further manipulate views that have already been added by bundles registered previously. -After that an empty list should appear on ``/admin/#/events``. But if you add some data to the ``event`` table it -should be listed: +The debug command can be used to check whether your view has been created correctly. ``sulu:admin:debug-view`` + +.. code-block:: bash + + $ bin/adminconsole sulu:admin:debug-view | grep event + app.events_list sulu_admin.list /events + +After that, an empty list should appear on ``/admin/#/events``. Once you add data to the `event` table, the list will populate with the new information: .. figure:: ../img/extend-admin-list.jpg