‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\PageLayoutController Class Reference

Public Member Functions

 __construct (protected readonly IconFactory $iconFactory, protected readonly PageRenderer $pageRenderer, protected readonly UriBuilder $uriBuilder, protected readonly PageRepository $pageRepository, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly EventDispatcherInterface $eventDispatcher, protected readonly ModuleProvider $moduleProvider, protected readonly BackendLayoutRenderer $backendLayoutRenderer, protected readonly BackendLayoutView $backendLayoutView,)
 
 mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 initialize (ServerRequestInterface $request)
 
 createPageLayoutContext (ServerRequestInterface $request, array $tsConfig)
 
 menuConfig ()
 
 getLocalizedPageRecord (int $languageId)
 
 makeActionMenu (ModuleTemplate $view, array $tsConfig)
 
 generateMessagesForCurrentPage (ServerRequestInterface $request)
 
 addJavaScriptModuleInstructions ()
 
 getPageLinksWhereContentIsAlsoShownOn (int $pageId)
 
 initializeClipboard (ServerRequestInterface $request)
 
 makeButtons (ModuleTemplate $view, ServerRequestInterface $request, array $tsConfig)
 
 makeViewButton (ButtonBar $buttonBar, array $tsConfig)
 
 makeEditButton (ButtonBar $buttonBar, ServerRequestInterface $request)
 
 makeLanguageSwitchButton (ButtonBar $buttonbar)
 
 getNumberOfHiddenElements (DrawingConfiguration $drawingConfiguration)
 
 isPageEditable (int $languageId)
 
 isContentEditable (int $languageId)
 
 getTargetPageIfVisible (array $targetPage)
 
 getShortcutTitle ()
 
 resolveExternalUrl (array $pagerow, ServerRequestInterface $request)
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

int $id = 0
 
array bool $pageinfo = false
 
int $currentSelectedLanguage
 
array $MOD_MENU
 
array $availableLanguages = []
 
ModuleData $moduleData = null
 

Detailed Description

The Web > Page module.

Definition at line 63 of file PageLayoutController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\PageLayoutController::__construct ( protected readonly IconFactory  $iconFactory,
protected readonly PageRenderer  $pageRenderer,
protected readonly UriBuilder  $uriBuilder,
protected readonly PageRepository  $pageRepository,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory,
protected readonly EventDispatcherInterface  $eventDispatcher,
protected readonly ModuleProvider  $moduleProvider,
protected readonly BackendLayoutRenderer  $backendLayoutRenderer,
protected readonly BackendLayoutView  $backendLayoutView 
)

Definition at line 85 of file PageLayoutController.php.

Member Function Documentation

◆ addJavaScriptModuleInstructions()

TYPO3\CMS\Backend\Controller\PageLayoutController::addJavaScriptModuleInstructions ( )
protected

◆ createPageLayoutContext()

TYPO3\CMS\Backend\Controller\PageLayoutController::createPageLayoutContext ( ServerRequestInterface  $request,
array  $tsConfig 
)
protected

◆ generateMessagesForCurrentPage()

◆ getBackendUser()

◆ getLanguageService()

◆ getLocalizedPageRecord()

◆ getNumberOfHiddenElements()

TYPO3\CMS\Backend\Controller\PageLayoutController::getNumberOfHiddenElements ( DrawingConfiguration  $drawingConfiguration)
protected

Returns the number of hidden elements (including those hidden by start/end times) on the current page (for the current site language)

Definition at line 677 of file PageLayoutController.php.

References $GLOBALS, TYPO3\CMS\Backend\Controller\PageLayoutController\getBackendUser(), TYPO3\CMS\Backend\View\Drawing\DrawingConfiguration\isLanguageComparisonMode(), and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\mainAction().

◆ getPageLinksWhereContentIsAlsoShownOn()

TYPO3\CMS\Backend\Controller\PageLayoutController::getPageLinksWhereContentIsAlsoShownOn ( int  $pageId)
protected

Get all pages with links where the content of a page $pageId is also shown on.

Definition at line 444 of file PageLayoutController.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\generateMessagesForCurrentPage().

◆ getShortcutTitle()

TYPO3\CMS\Backend\Controller\PageLayoutController::getShortcutTitle ( )
protected

Returns the shortcut title for the current page

Definition at line 814 of file PageLayoutController.php.

References TYPO3\CMS\Backend\Controller\PageLayoutController\getLanguageService().

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\makeButtons().

◆ getTargetPageIfVisible()

TYPO3\CMS\Backend\Controller\PageLayoutController::getTargetPageIfVisible ( array  $targetPage)
protected

Returns the target page if visible

Definition at line 806 of file PageLayoutController.php.

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\generateMessagesForCurrentPage().

◆ initialize()

TYPO3\CMS\Backend\Controller\PageLayoutController::initialize ( ServerRequestInterface  $request)
protected

◆ initializeClipboard()

TYPO3\CMS\Backend\Controller\PageLayoutController::initializeClipboard ( ServerRequestInterface  $request)
protected

Initializes the clipboard for generating paste links dynamically via JavaScript after each "+ Content" symbol

Definition at line 468 of file PageLayoutController.php.

References TYPO3\CMS\Core\Page\JavaScriptModuleInstruction\create(), and TYPO3\CMS\Backend\Controller\PageLayoutController\isContentEditable().

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\mainAction().

◆ isContentEditable()

TYPO3\CMS\Backend\Controller\PageLayoutController::isContentEditable ( int  $languageId)
protected

◆ isPageEditable()

TYPO3\CMS\Backend\Controller\PageLayoutController::isPageEditable ( int  $languageId)
protected

◆ mainAction()

◆ makeActionMenu()

TYPO3\CMS\Backend\Controller\PageLayoutController::makeActionMenu ( ModuleTemplate  $view,
array  $tsConfig 
)
protected

This creates the dropdown menu with the different actions this module is able to provide. For now, they are Columns and Languages.

Definition at line 269 of file PageLayoutController.php.

References TYPO3\CMS\Backend\Template\ModuleTemplate\getDocHeaderComponent(), and TYPO3\CMS\Backend\Controller\PageLayoutController\getLanguageService().

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\mainAction().

◆ makeButtons()

◆ makeEditButton()

◆ makeLanguageSwitchButton()

◆ makeViewButton()

◆ menuConfig()

TYPO3\CMS\Backend\Controller\PageLayoutController::menuConfig ( )
protected

◆ resolveExternalUrl()

TYPO3\CMS\Backend\Controller\PageLayoutController::resolveExternalUrl ( array  $pagerow,
ServerRequestInterface  $request 
)
protected

Returns the redirect URL for the input page row IF the doktype is set to 3.

Definition at line 827 of file PageLayoutController.php.

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\generateMessagesForCurrentPage().

Member Data Documentation

◆ $availableLanguages

array TYPO3\CMS\Backend\Controller\PageLayoutController::$availableLanguages = []
protected

Definition at line 81 of file PageLayoutController.php.

◆ $currentSelectedLanguage

int TYPO3\CMS\Backend\Controller\PageLayoutController::$currentSelectedLanguage
protected

Definition at line 75 of file PageLayoutController.php.

◆ $id

int TYPO3\CMS\Backend\Controller\PageLayoutController::$id = 0
protected

Page uid for which to make the listing

Definition at line 68 of file PageLayoutController.php.

Referenced by TYPO3\CMS\Backend\Controller\PageLayoutController\makeEditButton().

◆ $MOD_MENU

array TYPO3\CMS\Backend\Controller\PageLayoutController::$MOD_MENU
protected

Definition at line 76 of file PageLayoutController.php.

◆ $moduleData

ModuleData TYPO3\CMS\Backend\Controller\PageLayoutController::$moduleData = null
protected

Definition at line 83 of file PageLayoutController.php.

◆ $pageinfo

array bool TYPO3\CMS\Backend\Controller\PageLayoutController::$pageinfo = false
protected

Current page record

Definition at line 73 of file PageLayoutController.php.