0

I have several custom entities as part of a module. When I visit /admin/structure, one of the entities is not listed in the groups of setting, or in the lists. However, if I manually type, /admin/structure/{entity}/settings/fields, I can manage the fields, form and display. However, the "Settings" tab is missing.

Similarly, I can manually type /admin/structure/{module}/{entity} to see the entity list, but the link is missing. The entity list is missing the button to add a new entity because the entire #block-seven-local-actions div is missing. Manually typing /admin/structure/{module}/{entity}/add brings up the correct form, and the form works.

It appears the routes are present, but something is preventing some of the links from being displayed. There are no errors in the recent log messages.

1 Answer 1

1

Please revise your file:

yourmodule.links.menu.yml.

and verify if exists the parameter

parent

A complete example

  yourmodule.admin_content:
  title: Content
  description: 'Find and manage content.'
  route_name: system.admin_content
  parent: system.admin_structure
  weight: -10
4
  • The entities were missing from that file. Adding them fixes the links not appearing on admin/structure. However, the link to add a new entity is still missing from the list page, and the "settings" tab is still missing at /admin/structure/{entity}/settings/fields Commented Nov 27, 2017 at 18:52
  • 1
    Did you check file routing.yml ?, because the "settings" tab might not exist for this entity. Commented Nov 27, 2017 at 19:06
  • Thanks. I needed to add entries to the tasks.yml and actions.yml files Commented Nov 27, 2017 at 19:11
  • Excellent. Congratulations :). Commented Nov 27, 2017 at 19:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.