PageLinkMessageProvider
Read onlyYes
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
$connectionPool
protected
ConnectionPool
$connectionPool
$pageTypeLinkResolver
protected
PageTypeLinkResolver
$pageTypeLinkResolver
$recordFactory
protected
RecordFactory
$recordFactory
$tcaSchemaFactory
protected
TcaSchemaFactory
$tcaSchemaFactory
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(ConnectionPool $connectionPool, PageTypeLinkResolver $pageTypeLinkResolver, RecordFactory $recordFactory, UriBuilder $uriBuilder, TcaSchemaFactory $tcaSchemaFactory) : mixed
Parameters
- $connectionPool : ConnectionPool
- $pageTypeLinkResolver : PageTypeLinkResolver
- $recordFactory : RecordFactory
- $uriBuilder : UriBuilder
- $tcaSchemaFactory : TcaSchemaFactory
generateMessagesForPageTypeLink()
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}findRecord()
protected
findRecord(string $table, int $uid) : RecordInterface|null
Parameters
- $table : string
- $uid : int
Return values
RecordInterface|nullgenerateFrontendLink()
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
stringgenerateLinkToCurrent()
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
stringgetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetMessageBasedOnPageRecordAndUnhandledLinkTypes()
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}getMessageForMissingLink()
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