public function UserTrackerTab::getRouteParameters in Drupal 9
Same name and namespace in other branches
- 8 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 55
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(),
];
}