Routing¶
The routing
frontend request attribute provides routing information in
the object \TYPO3\CMS\Core\Routing\PageArguments
. If you want to know the
current page ID or retrieve the query parameters this attribute is your friend.
Example:
$pageArguments = $request->getAttribute('routing');
$pageId = $pageArguments->getPageId();
Copied!
API¶
- class \TYPO3\CMS\Core\Routing\ PageArguments
-
Contains all resolved parameters when a page is resolved from a page path segment plus all fragments.
- areDirty ( )
-
- returntype
-
bool
- getRouteArguments ( )
-
- returntype
-
array
- getPageId ( )
-
- returntype
-
int
- getPageType ( )
-
- returntype
-
string
- get ( string $name)
-
- param string $name
-
the name
- getArguments ( )
-
- returntype
-
array
- getStaticArguments ( )
-
- returntype
-
array
- getDynamicArguments ( )
-
- returntype
-
array
- getQueryArguments ( )
-
- returntype
-
array
- offsetExists ( mixed $offset)
-
- param mixed $offset
-
the offset
- returntype
-
bool
- offsetGet ( mixed $offset)
-
- param mixed $offset
-
the offset
- offsetSet ( mixed $offset, mixed $value)
-
- param mixed $offset
-
the offset
- param mixed $value
-
the value
- offsetUnset ( mixed $offset)
-
- param mixed $offset
-
the offset