Skip to content

Commit

Permalink
Add review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Prokyonn committed Jul 16, 2024
1 parent 1a8f8a5 commit ad0f77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundles/activity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ To extend the admin view by adding a activities table, follow these steps:
1. Inject the `ActivityViewBuilderFactoryInterface`: Inject this interface into your custom Admin class. This will allow you to utilize the necessary methods to create the activities view.
2. Create the Activity List View: Use the `createActivityListViewBuilder` method to create the list view for the activities table.

Here’s an example implementation from the `SnippetAdmin` class, demonstrating how to add the activities tab to your custom admin view:
Here’s an example implementation, demonstrating how to add the activities tab to your custom admin view, for further examples take a look at the SnippetAdmin class:

.. code-block:: php
Expand All @@ -205,7 +205,7 @@ Here’s an example implementation from the `SnippetAdmin` class, demonstrating
->createActivityListViewBuilder(
$insightsResourceTabViewName . '.activity',
'/activities',
SnippetDocument::RESOURCE_KEY
CustomEntity::RESOURCE_KEY
)
->setParent($insightsResourceTabViewName)
);
Expand Down

0 comments on commit ad0f77f

Please sign in to comment.