Routing
Frontend
The routing
frontend request attribute provides routing information in
the object \TYPO3\
. If you want to know the
current page ID or retrieve the query parameters this attribute is your friend.
Example:
/** @var \Psr\Http\Message\ServerRequestInterface $request */
$pageArguments = $request->getAttribute('routing');
$pageId = $pageArguments->getPageId();
Copied!
API
Backend
New in version 12.1
The routing
backend request attribute provides routing information in
the object \TYPO3\
.
Example:
/** @var \Psr\Http\Message\ServerRequestInterface $request */
$routing = $request->getAttribute('routing');
$arguments = $routing->getArguments()
Copied!
See also
API
- class RouteResult
-
- Fully qualified name
-
\TYPO3\
CMS\ Backend\ Routing\ Route Result
A route result for the TYPO3 Backend Routing, containing the matched Route and the related arguments found in the URL