PageLinkMessageProvider

Read onlyYes
Internal

To be used in the Content > Layout module and not part of public API.

Table of Contents

Properties

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

Methods

__construct()  : mixed
generateMessagesForPageTypeLink()  : 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<string|int, mixed>
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()  : ContextualFeedbackSeverity}
getMessageForMissingLink()  : ContextualFeedbackSeverity}
getMessageForPageTypeLinkToPage()  : ContextualFeedbackSeverity}
getMessageForPageTypeLinkToRecord()  : 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<string|int, mixed> $pageRecord, ServerRequestInterface $request) : ContextualFeedbackSeverity}
Parameters
$pageRecord : array<string|int, mixed>

the database row of the page of type link

$request : ServerRequestInterface
Return values
ContextualFeedbackSeverity}
protected generateFrontendLink(string $pageLink, LanguageService $languageService, string $type) : array<string|int, mixed>
Parameters
$pageLink : string
$languageService : LanguageService
$type : string
Return values
array<string|int, mixed>

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<string|int, mixed> $linkInfo, ServerRequestInterface $request, LanguageService $languageService) : string
Parameters
$linkInfo : array<string|int, mixed>
$request : ServerRequestInterface
$languageService : LanguageService
Return values
string

getMessageBasedOnPageRecordAndUnhandledLinkTypes()

protected getMessageBasedOnPageRecordAndUnhandledLinkTypes(array<string|int, mixed> $pageRecord, array<string|int, mixed> $linkInfo, ServerRequestInterface $request, LanguageService $languageService) : ContextualFeedbackSeverity}
Parameters
$pageRecord : array<string|int, mixed>

the database row of the page of type link

$linkInfo : array<string|int, mixed>
$request : ServerRequestInterface
$languageService : LanguageService
Return values
ContextualFeedbackSeverity}
protected getMessageForMissingLink(ServerRequestInterface $request, LanguageService $languageService) : ContextualFeedbackSeverity}
Parameters
$request : ServerRequestInterface
$languageService : LanguageService
Return values
ContextualFeedbackSeverity}

getMessageForPageTypeLinkToPage()

protected getMessageForPageTypeLinkToPage(array<string|int, mixed> $linkInfo, ServerRequestInterface $request, LanguageService $languageService) : ContextualFeedbackSeverity}
Parameters
$linkInfo : array<string|int, mixed>
$request : ServerRequestInterface
$languageService : LanguageService
Return values
ContextualFeedbackSeverity}

getMessageForPageTypeLinkToRecord()

protected getMessageForPageTypeLinkToRecord(array<string|int, mixed> $linkInfo, ServerRequestInterface $request, LanguageService $languageService) : ContextualFeedbackSeverity}
Parameters
$linkInfo : array<string|int, mixed>
$request : ServerRequestInterface
$languageService : LanguageService
Return values
ContextualFeedbackSeverity}

        
On this page

Search results