parent: system.admin_content
route handles /admin/content
path. I'm trying to add more items to the menu tabs visible on that page.
So I'm doing this:
# test.routing.yml
entity.admin.test:
path: '/admin/content/test_entity'
defaults:
_entity_list: 'test_entity'
_title: 'Test entities'
requirements:
_permission: 'administer content types'
# test.links.menu.yml
test.admin:
title: Test entities
route_name: entity.admin.test
# I have also tried using route defined in my entity type annotation
# route_name: entity.test_entity.collection
parent: system.admin_content
description: 'List and edit site test entities.'
The route works (I can access page at /admin/content/test_entity
), but menu item is not displayed. If I change parent to for example system.admin_structutre
then the menu item is shown on /admin/structure
list without problems.
/admin/content
page next to "Content" and "Files" tabs as shown on the image that I've attached.