- π¨π¦Canada chrisck BC, Canada
If this is a challenge to build into the module, how can this be done programmatically via local tasks? Something like this?
mymodule.links.task.yml
mymodule.view_mode_page_name:
route_name: view_mode_page.display_entity
title: 'View Mode Name'
route_parameters:
view_mode: 'view_mode_machine_name'
entity_type: 'node'
base_route: entity.node.canonicalmymodule.routing.yml
mymodule.view_mode_page_name:
path: '/node/{node}/view-mode-pattern'
defaults:
_controller: '\Drupal\view_mode_page\Controller\MainController::displayEntity'
requirements:
_permission: 'access content'