LocalActionInterface
interface LocalActionInterface (View source)
Defines an interface for menu local actions.
Methods
Get the route name from the settings.
Returns the route parameters needed to render a link for the local action.
Returns the weight for the local action.
Returns options for rendering a link for the local action.
Returns the localized title to be shown for this action.
Details
string
getRouteName()
Get the route name from the settings.
array
getRouteParameters(RouteMatchInterface $route_match)
Returns the route parameters needed to render a link for the local action.
int
getWeight()
Returns the weight for the local action.
array
getOptions(RouteMatchInterface $route_match)
Returns options for rendering a link for the local action.
string
getTitle()
Returns the localized title to be shown for this action.
Subclasses may add optional arguments like NodeInterface $node = NULL that will be supplied by the ControllerResolver.