I have the following,
In the routing.yml
mymodule.cache_clear:
path: '/node/{node}/cache'
defaults:
_form: '\Drupal\mymodule\Form\APICacheClearForm'
_title: 'Cache Clear'
requirements:
_permission: 'access content'
entity: \d+
options:
_admin_route: TRUE
parameters:
node_type:
type: entity:node
bundle:
- blog
In the links.task.yml
mymodule.cache_clear:
title: 'Cache Clear'
route_name: topgun_api.cache_clear
route_parameters: { node_type: blog }
base_route: entity.node.canonical
I don't see the tab being shown only on blog content type.
Is it not possible to accomplish this without using _custom_access
?