Skip to content

All route variables from the current route... #12901

@RubenHarms

Description

@RubenHarms

Is there a short way to get all router parameters (including the query parameters)?

Now i use the following code:

$routeVars = array_merge($this->getRequest()->query->all(), $this->getRequest()->attributes->get('_route_params'));        

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions