Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Estelle Gaits <[email protected]>
  • Loading branch information
loic425 and stlgaits committed Jan 17, 2025
1 parent e3c8e74 commit 1231954
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/grid/your_first_grid.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource. Let us assume you have a Supplier model in your application,
which represents a supplier of goods in your shop and has several
fields, including _name_, _description_ and _enabled_.

In order to make it a Sylius resource, you need add the `AsResource` attribute and implement the `ResourceInterface`.
In order to make it a Sylius resource, you need to add the `AsResource` attribute and implement `ResourceInterface`.

```php
// src/Entity/Supplier.php
Expand Down Expand Up @@ -191,8 +191,7 @@ Now, your new grid should look like this when accessing the index on */admin/sup

![image](../.gitbook/assets/suppliers_grid.png)

Defining Filters
----------------
## Defining Filters

To allow users to search for specific items in the grid, you can use filters.

Expand Down

0 comments on commit 1231954

Please sign in to comment.