我定義了自定義實體並在註釋中定義了field_ui_base_route來激活字段ui。 問題是該字段ui選項卡不會出現在基本路由頁面上,但只有在地址欄中手動訪問它們之後。drupal 8字段ui實體標籤不工作
field_ui_base_route是portal_admin.office_overview
portal_admin.office_overview:
path: '/admin/portal/org/office'
defaults:
_title: 'Portal organization'
_entity_list: 'portal_office'
requirements:
_permission: 'administer portal'
在links.task.yml我有默認的任務:
portal_admin.office_overview:
route_name: portal_admin.office_overview
title: Overview
base_route: portal_admin.office_overview
當我手動瀏覽/管理/門戶網站/組織/辦公室/場我做查看所有標籤。
奇怪的是,當我做下來條紋例如不相關的實體和現場UI選項卡做的工作:
mod1.page5:
title: 'Main'
route_name: mod1.page5
base_route: mod1.page5
mod1.page51:
title: 'sub1'
route_name: mod1.page51
base_route: mod1.page5
mod1.page52:
title: 'sub2'
route_name: mod1.page52
base_route: mod1.page5