Local tasks for current route are only checked for two levels

Created on 21 January 2019, over 5 years ago
Updated 24 June 2024, 4 months ago

Problem/Motivation

Drupal currently only supports two levels of local tasks because there is not recursive checking of route parents.

There is already a @todo to this effect in Drupal\Core\Menu\LocalTaskManager::getLocalTasksForRoute().

Proposed resolution

Do a recursive check on the local task 'parent_id' check rather than just checking one level of parents.

Remaining tasks

  • h
  • Write tests
πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
Menu systemΒ  β†’

Last updated about 22 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom yanniboi UK

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024