PageLinkMessageProvider

readonly class \TYPO3\CMS\Backend\Service\PageLinkMessageProvider

Table of Contents

Properties

$connectionPool  : ConnectionPool
$pageTypeLinkResolver  : PageTypeLinkResolver
$recordFactory  : RecordFactory
$tcaSchemaFactory  : TcaSchemaFactory
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
generateMessagesForPageTypeLink()  : array{message: string, state: ContextualFeedbackSeverity}
Generates the messages that are displayed in the Content > Layout module to show the target of a page of type link.
findRecord()  : RecordInterface|null
generateFrontendLink()  : array
generateLinkToContentElement()  : string
Generates a link to the page module containing the content element and displays information about the content element.
generateLinkToCurrent()  : string
Generates the backend message for link pages linking to current request page, with or without appending parameters.
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
getMessageBasedOnPageRecordAndUnhandledLinkTypes()  : array{message: string, state: ContextualFeedbackSeverity}
getMessageForMissingLink()  : array{message: string, state: ContextualFeedbackSeverity}
getMessageForPageTypeLinkToPage()  : array{message: string, state: ContextualFeedbackSeverity}
getMessageForPageTypeLinkToRecord()  : array{message: string, state: ContextualFeedbackSeverity}

Properties

Methods

Generates the messages that are displayed in the Content > Layout module to show the target of a page of type link.

public generateMessagesForPageTypeLink(array $pageRecord, ServerRequestInterface $request) : array{message: string, state: ContextualFeedbackSeverity}

Parameters

$pageRecord : array

the database row of the page of type link

$request : ServerRequestInterface

Return values

array{message: string, state: ContextualFeedbackSeverity}
protected generateFrontendLink(string $pageLink, LanguageService $languageService, string $type) : array

Parameters

$pageLink : string
$languageService : LanguageService
$type : string

Return values

array

generateLinkToContentElement()

Generates a link to the page module containing the content element and displays information about the content element.

protected generateLinkToContentElement(int $fragment, ServerRequestInterface $request, string $linkedPage) : string

Parameters

$fragment : int
$request : ServerRequestInterface
$linkedPage : string

Return values

string

generateLinkToCurrent()

Generates the backend message for link pages linking to current request page, with or without appending parameters.

protected generateLinkToCurrent(array $linkInfo, ServerRequestInterface $request, LanguageService $languageService) : string

Parameters

$linkInfo : array
$request : ServerRequestInterface
$languageService : LanguageService

Return values

string

getMessageBasedOnPageRecordAndUnhandledLinkTypes()

protected getMessageBasedOnPageRecordAndUnhandledLinkTypes(array $pageRecord, array $linkInfo, ServerRequestInterface $request, LanguageService $languageService) : array{message: string, state: ContextualFeedbackSeverity}

Parameters

$pageRecord : array

the database row of the page of type link

$linkInfo : array
$request : ServerRequestInterface
$languageService : LanguageService

Return values

array{message: string, state: ContextualFeedbackSeverity}
protected getMessageForMissingLink(ServerRequestInterface $request, LanguageService $languageService) : array{message: string, state: ContextualFeedbackSeverity}

Parameters

$request : ServerRequestInterface
$languageService : LanguageService

Return values

array{message: string, state: ContextualFeedbackSeverity}

getMessageForPageTypeLinkToPage()

protected getMessageForPageTypeLinkToPage(array $linkInfo, ServerRequestInterface $request, LanguageService $languageService) : array{message: string, state: ContextualFeedbackSeverity}

Parameters

$linkInfo : array
$request : ServerRequestInterface
$languageService : LanguageService

Return values

array{message: string, state: ContextualFeedbackSeverity}

getMessageForPageTypeLinkToRecord()

protected getMessageForPageTypeLinkToRecord(array $linkInfo, ServerRequestInterface $request, LanguageService $languageService) : array{message: string, state: ContextualFeedbackSeverity}

Parameters

$linkInfo : array
$request : ServerRequestInterface
$languageService : LanguageService

Return values

array{message: string, state: ContextualFeedbackSeverity}
On this page