public function UserTrackerTab::getRouteParameters in Drupal 8
Same name and namespace in other branches
- 9 core/modules/tracker/src/Plugin/Menu/UserTrackerTab.php \Drupal\tracker\Plugin\Menu\UserTrackerTab::getRouteParameters()
Returns the route parameters needed to render a link for the local task.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
Return value
array An array of parameter names and values.
Overrides LocalTaskDefault::getRouteParameters
File
- core/
modules/ tracker/ src/ Plugin/ Menu/ UserTrackerTab.php, line 38
Class
- UserTrackerTab
- Provides route parameters needed to link to the current user tracker tab.
Namespace
Drupal\tracker\Plugin\MenuCode
public function getRouteParameters(RouteMatchInterface $route_match) {
return [
'user' => $this
->currentUser()
->Id(),
];
}