Returns the PageRenderer instance.
@return PageRenderer
getPageRenderer(): PageRendererRetrieves a parameter from the request input data.
Checks POST or GET data depending on the request method.
@param string $parameter Parameter name to retrieve
@return mixed|null Parameter value if found, or null if not present
get(string $parameter): mixed$parameter = $this->get('magicNumber');Gets the HTTP request method.
@param bool $lowercase Return method name in lowercase if true, uppercase otherwise
@return string HTTP method
getMethod(bool $lowercase = false): stringRetrieves the allowed user groups for the current route.
@return array Array of allowed user group identifiers
getAllowedUserGroups(): arrayRetrieves the user groups of the currently authenticated user.
@return array Array of user group identifiers
getUserGroups(): arrayReturns all accumulated response parameters.
@return array Associative array of response parameters
getResponseParameters(): arrayRetrieves a single response parameter by key.
@param string $key Parameter key to retrieve
@return mixed|null Returns the parameter value if set, or null if not found
getResponseParameter(string $key): mixedGets the configured format for the current route.
@return string|null Format string (e.g., 'html', 'json') or null if not set
getFormat(): ?stringReturns the current RouteObject instance associated with this controller.
@return RouteObject The route object
getRoute(): RouteObjectRetrieves the current request URI path.
@return string URI path of the request
getPath(): stringRetrieves the current TYPO3 context identifier from server parameters.
@return string|null TYPO3 context string or null if not set
getContext(): ?stringReturns information about the current page, if available.
@return PageInformation|null Page information object or null if not set
getPageInformation(): ?PageInformationGets the current JSON encoding flags.
@return int JSON encoding bitmask flags
getJSONFlags(): intReturns the list of allowed HTTP methods for this request.
@return array|null Array of allowed methods or null if not restricted
getAllowedMethods(): ?arrayReturns the configured block size used when streaming files.
@return int|null Block size in bytes or null if unset
getBlockSize(): ?intGets the configured file redirect type.
@return int File redirect type constant (NONE, APACHE, NGINX)
getFileRedirect(): intThese constants are used by the file response method.
| Constant | Definition |
|---|---|
| FILE_REDIRECT_NONE | Could not get server information or architecture is neither APACHE nor NGINX |
| FILE_REDIRECT_APACHE | Server is APACHE |
| FILE_REDIRECT_NGINX | Server is NGINX |
Gets the file redirect mask path for Nginx X-Accel-Redirect.
@return string|null Mask path string or null if unset
getFileRedirectMask(): ?stringGets the relative directory path for Nginx X-Accel-Redirect file handling.
@return string|null Relative directory path or null if unset
getFileRedirectRelDir(): ?stringReturns the current CSRF token string.
@return string CSRF token value
getCsrfToken(): stringRetrieves the path of the given key or null.
@param string $key Key of the entry
@param int $moduleSpecifierKey The import map section to search in (default: self::IMPORTMAP_IMPORTS)
@return string|null The path or null if entry does not exist
protected function getImportmapEntry(string $key, int $moduleSpecifierKey = self::IMPORTMAP_IMPORTS): string|nullSee: addImportmapEntry() for a full list of moduleSpecifierKey values.