diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php index cd8e066..502fbeb 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/PathPluginBase.php @@ -293,6 +293,12 @@ public function executeHookMenu($callbacks) { // Insert item into the proper menu. $items[$path]['menu_name'] = $menu['name']; break; + case 'tab': + $items[$path]['type'] = MENU_CALLBACK; + break; + case 'default tab': + $items[$path]['type'] = MENU_CALLBACK; + break; } // Add context for contextual links. @@ -304,9 +310,6 @@ public function executeHookMenu($callbacks) { $items[$path]['context'] = MENU_CONTEXT_INLINE; $items[$path]['type'] = MENU_LOCAL_TASK; } - else { - $items[$path]['type'] = MENU_CALLBACK; - } } // If this is a 'default' tab, check to see if we have to create the @@ -318,6 +321,11 @@ public function executeHookMenu($callbacks) { // Remove the last piece. $bit = array_pop($bits); + // Default tabs are handled by the local task plugins. + if ($tab_options['type'] == 'tab') { + return $items; + } + // we can't do this if they tried to make the last path bit variable. // @todo: We can validate this. if ($bit != '%views_arg' && !empty($bits)) {