简体   繁体   English

Sonata管理员仪表板仅删除一个实体的列表链接

[英]Sonata Admin Dashboard remove list link for one entity only

I have many lists are showing on the dashboard, but I want to remove some of them. 我的仪表板上有很多列表,但是我想删除其中一些。

I still want list to work as it is, but just remove the link from the dashboard. 我仍然希望列表按原样工作,但只需从仪表板上删除链接即可。 I'm not sure thats even possible or not, there is no doc about it. 我不确定这是否可能,没有关于它的文档。

There is a tag show_in_dashboard for service configuration: 有一个标签show_in_dashboard用于服务配置:

foo.admin.bar:
    class: Foo\Bar\FooBarAdmin
    ...
    tags:
        -
            name:              sonata.admin
            manager_type:      orm
            group:             'Group'
            label:             'Label'
            show_in_dashboard: false

可以将其添加到文档@Basit吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM