Drupal 8:在配置页面上创建一个自定义面板(选项卡)

时间:2018-08-13 08:13:37

标签: drupal-8

告诉我如何在配置页面上使用自定义模块(和yml文件)创建自定义面板,并在其中放置任意链接?

Example panel (tab)

1 个答案:

答案 0 :(得分:0)

做到了:

# Register a tab on the configuration page
name_shower.admin_config_panel:
  route_name: name_shower.admin_config_panel
  title: 'My Custom Panel'
  parent: system.admin_config
  description: 'It is my custom panel'
  weight: -5
  url: internal: #

# Add link 
name_shower.admin_index:
  title: 'Name shower settings'
  description: 'Settigns for module "Name shower"'
  parent: name_shower.admin_config_panel
  route_name: name_shower.admin_index
  weight: 0
  url: internal:/admin/config/name_shower