public function UserTrackerTab::getRouteParameters in Zircon Profile 8.0
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 44 - Contains \Drupal\tracker\Plugin\Menu\UserTrackerTab.
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 array(
'user' => $this
->currentUser()
->Id(),
);
}