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();
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()¶
- Return type
bool
- getRouteArguments()¶
- Return type
array
- getPageId()¶
- Return type
int
- getPageType()¶
- Return type
string
- get(string $name)¶
- Parameters
$name (
string
) -- the name
- getArguments()¶
- Return type
array
- getStaticArguments()¶
- Return type
array
- getDynamicArguments()¶
- Return type
array
- getQueryArguments()¶
- Return type
array
- offsetExists(mixed $offset)¶
- Parameters
$offset (
mixed
) -- the offset
- Return type
bool
- offsetGet(mixed $offset)¶
- Parameters
$offset (
mixed
) -- the offset
- offsetSet(mixed $offset, mixed $value)¶
- Parameters
$offset (
mixed
) -- the offset$value (
mixed
) -- the value
- offsetUnset(mixed $offset)¶
- Parameters
$offset (
mixed
) -- the offset