‪TYPO3CMS  10.4
TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler Class Reference
Inheritance diagram for TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler:
TYPO3\CMS\Core\Error\PageErrorHandler\PageErrorHandlerInterface

Public Member Functions

 __construct (int $statusCode, array $configuration)
 
ResponseInterface handlePageError (ServerRequestInterface $request, string $message, array $reasons=[])
 

Protected Member Functions

 createGenericErrorResponse (string $message='')
 
array int[] getSubRequestOptions ()
 
string resolveUrl (ServerRequestInterface $request, string $typoLinkUrl)
 

Protected Attributes

int $statusCode
 
array $errorHandlerConfiguration
 
int $pageUid = 0
 

Detailed Description

Renders the content of a page to be displayed (also in relation to language etc) This is typically configured via the "Sites configuration" module in the backend.

Definition at line 42 of file PageContentErrorHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::__construct ( int  $statusCode,
array  $configuration 
)

PageContentErrorHandler constructor.

Parameters
int$statusCode
array$configuration
Exceptions

Definition at line 63 of file PageContentErrorHandler.php.

References TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler\$statusCode.

Member Function Documentation

◆ createGenericErrorResponse()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::createGenericErrorResponse ( string  $message = '')
protected

◆ getSubRequestOptions()

array int [] TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::getSubRequestOptions ( )
protected

Returns request options for the subrequest and ensures, that a reasoneable timeout is present

Returns
‪array|int[]

Definition at line 158 of file PageContentErrorHandler.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler\handlePageError().

◆ handlePageError()

◆ resolveUrl()

string TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::resolveUrl ( ServerRequestInterface  $request,
string  $typoLinkUrl 
)
protected

Resolve the URL (currently only page and external URL are supported)

Parameters
ServerRequestInterface$request
string$typoLinkUrl
Returns
‪string
Exceptions
SiteNotFoundException
InvalidRouteArgumentsException

Definition at line 178 of file PageContentErrorHandler.php.

References TYPO3\CMS\Core\Site\Entity\SiteLanguage\isEnabled().

Referenced by TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler\handlePageError().

Member Data Documentation

◆ $errorHandlerConfiguration

array TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$errorHandlerConfiguration
protected

Definition at line 51 of file PageContentErrorHandler.php.

◆ $pageUid

int TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$pageUid = 0
protected

◆ $statusCode

int TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$statusCode
protected