continue;
} // Find out the parent route.
// @todo Find out how to find both the root and parent tab.
$path =
$executable->display_handler->
getPath();
$split =
explode('/',
$path);
array_pop($split);
$path =
implode('/',
$split);
$pattern = '/' .
str_replace('%', '{}',
$path);
if ($routes =
$this->routeProvider->
getRoutesByPattern($pattern)) { foreach ($routes->
all() as $name =>
$route) { $local_tasks['views_view:' .
$plugin_id]['base_route'
] =
$name;
// Skip after the first found route.
break;
} } } } } /**
* Return a list of all views and display IDs that have a menu entry.
*
* @return array
* A list of arrays containing the $view and $display_id.
*
* @code
* array(
* array($view, $display_id),
* array($view, $display_id),
* );
* @endcode
*/