| 1 | <?php |
||
| 3 | class ImageWithStyleAdmin extends ModelAdmin |
||
|
|
|||
| 4 | { |
||
| 5 | private static $managed_models = [ |
||
| 6 | 'ImagesWithStyleSelection', |
||
| 7 | 'ImageWithStyle', |
||
| 8 | 'ImageStyle' |
||
| 9 | ]; |
||
| 10 | |||
| 11 | private static $url_segment = 'imageswithstyle'; // Linked as /admin/products/ |
||
| 12 | |||
| 13 | private static $menu_title = 'Styled Images'; |
||
| 14 | |||
| 15 | private static $menu_priority = 10; |
||
| 16 | |||
| 17 | private static $menu_icon = '/imagewithstyle/images/ImageWithStyleIcon.png'; |
||
| 18 | } |
||
| 19 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.