Implement creation of normal menu link as parent of a default tab
2 open threads
Closes #3467262
Merge request reports
Activity
390 // name based upon the altering. 391 $links[$menu_link_id] = [ 392 'route_name' => $this->getRouteName(), 393 // Identify URL embedded arguments and correlate them to a handler. 394 'load arguments' => [$this->view->storage->id(), $this->display['id'], '%index'], 395 'id' => $menu_link_id, 396 ]; 397 if (!isset($tab_options['menu_name'])) { 398 [$tab_options['menu_name'], $tab_options['parent']] = explode(':', $tab_options['parent'] ?? '', 2); 399 } 400 $links[$menu_link_id]['title'] = $tab_options['title'] ?? ''; 401 $links[$menu_link_id]['description'] = $tab_options['description'] ?? ''; 402 $links[$menu_link_id]['parent'] = $tab_options['parent'] ?? ''; 403 404 if (isset($menu['weight'])) { 405 $links[$menu_link_id]['weight'] = intval($menu['weight']); changed this line in version 2 of the diff
385 elseif ($menu['type'] == 'default tab') { 386 $tab_options = $this->getOption('tab_options'); 387 if ($tab_options['type'] === 'normal') { 388 $links[$menu_link_id] = []; 389 // Some views might override existing paths, so we have to set the route 390 // name based upon the altering. 391 $links[$menu_link_id] = [ 392 'route_name' => $this->getRouteName(), 393 // Identify URL embedded arguments and correlate them to a handler. 394 'load arguments' => [$this->view->storage->id(), $this->display['id'], '%index'], 395 'id' => $menu_link_id, 396 ]; 397 if (!isset($tab_options['menu_name'])) { 398 [$tab_options['menu_name'], $tab_options['parent']] = explode(':', $tab_options['parent'] ?? '', 2); 399 } 400 $links[$menu_link_id]['title'] = $tab_options['title'] ?? ''; added 460 commits
-
94b7a0b3...91de3017 - 458 commits from branch
project:11.x
- dec7cbf6 - Merge remote-tracking branch 'origin/11.x' into 3467262-for-a-page
- 03ccb04d - Issue #3467262: Basic test coverage
-
94b7a0b3...91de3017 - 458 commits from branch
added 138 commits
-
5658c11b...017ad48a - 137 commits from branch
project:11.x
- 7ad3f7ce - Merge remote-tracking branch 'origin/11.x' into 3467262-for-a-page
-
5658c11b...017ad48a - 137 commits from branch
added 1 commit
Please register or sign in to reply