‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\View\PageLayoutContext Class Reference

Public Member Functions

 __construct (protected readonly array $pageRecord, protected readonly BackendLayout $backendLayout, protected readonly SiteInterface $site, protected readonly DrawingConfiguration $drawingConfiguration, protected readonly ServerRequestInterface $request)
 
 cloneForLanguage (SiteLanguage $language)
 
 getBackendLayout ()
 
 getDrawingConfiguration ()
 
 getBackendUser ()
 
 getPageRecord ()
 
 getPageId ()
 
SiteLanguage[] getSiteLanguages ()
 
SiteLanguage[] getLanguagesToShow ()
 
 getSiteLanguage (?int $languageId=null)
 
 isPageEditable ()
 
 getAllowNewContent ()
 
 getContentTypeLabels ()
 
 getItemLabels ()
 
 getLanguageModeLabelClass ()
 
 getLanguageMode ()
 
 getLanguageModeIdentifier ()
 
 getNewLanguageOptions ()
 
 getCurrentRequest ()
 
 getLocalizedPageTitle ()
 
 getLocalizedPageRecord ()
 

Protected Member Functions

 setSiteLanguage (SiteLanguage $siteLanguage)
 
 getLanguageService ()
 

Protected Attributes

ContentFetcher $contentFetcher
 
array $localizedPageRecord = null
 
int $pageId
 
array $siteLanguages = []
 
SiteLanguage $siteLanguage
 
array $contentTypeLabels = []
 
array $itemLabels = []
 

Detailed Description

this is experimental and subject to change in TYPO3 v10 / v11

Definition at line 41 of file PageLayoutContext.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\View\PageLayoutContext::__construct ( protected readonly array  $pageRecord,
protected readonly BackendLayout  $backendLayout,
protected readonly SiteInterface  $site,
protected readonly DrawingConfiguration  $drawingConfiguration,
protected readonly ServerRequestInterface  $request 
)

Member Function Documentation

◆ cloneForLanguage()

◆ getAllowNewContent()

TYPO3\CMS\Backend\View\PageLayoutContext::getAllowNewContent ( )

◆ getBackendLayout()

TYPO3\CMS\Backend\View\PageLayoutContext::getBackendLayout ( )

◆ getBackendUser()

◆ getContentTypeLabels()

TYPO3\CMS\Backend\View\PageLayoutContext::getContentTypeLabels ( )

◆ getCurrentRequest()

TYPO3\CMS\Backend\View\PageLayoutContext::getCurrentRequest ( )

◆ getDrawingConfiguration()

TYPO3\CMS\Backend\View\PageLayoutContext::getDrawingConfiguration ( )

◆ getItemLabels()

TYPO3\CMS\Backend\View\PageLayoutContext::getItemLabels ( )

◆ getLanguageMode()

TYPO3\CMS\Backend\View\PageLayoutContext::getLanguageMode ( )

◆ getLanguageModeIdentifier()

TYPO3\CMS\Backend\View\PageLayoutContext::getLanguageModeIdentifier ( )

◆ getLanguageModeLabelClass()

TYPO3\CMS\Backend\View\PageLayoutContext::getLanguageModeLabelClass ( )

Definition at line 218 of file PageLayoutContext.php.

◆ getLanguageService()

◆ getLanguagesToShow()

◆ getLocalizedPageRecord()

TYPO3\CMS\Backend\View\PageLayoutContext::getLocalizedPageRecord ( )

◆ getLocalizedPageTitle()

TYPO3\CMS\Backend\View\PageLayoutContext::getLocalizedPageTitle ( )

Definition at line 318 of file PageLayoutContext.php.

◆ getNewLanguageOptions()

◆ getPageId()

TYPO3\CMS\Backend\View\PageLayoutContext::getPageId ( )

◆ getPageRecord()

TYPO3\CMS\Backend\View\PageLayoutContext::getPageRecord ( )

Definition at line 123 of file PageLayoutContext.php.

◆ getSiteLanguage()

TYPO3\CMS\Backend\View\PageLayoutContext::getSiteLanguage ( ?int  $languageId = null)

◆ getSiteLanguages()

SiteLanguage [] TYPO3\CMS\Backend\View\PageLayoutContext::getSiteLanguages ( )

◆ isPageEditable()

TYPO3\CMS\Backend\View\PageLayoutContext::isPageEditable ( )

◆ setSiteLanguage()

TYPO3\CMS\Backend\View\PageLayoutContext::setSiteLanguage ( SiteLanguage  $siteLanguage)
protected

Member Data Documentation

◆ $contentFetcher

ContentFetcher TYPO3\CMS\Backend\View\PageLayoutContext::$contentFetcher
protected

Definition at line 43 of file PageLayoutContext.php.

◆ $contentTypeLabels

array TYPO3\CMS\Backend\View\PageLayoutContext::$contentTypeLabels = []
protected

Array of content type labels. Key is CType, value is either a plain text label or an LLL:EXT:... reference to a specific label.

Definition at line 57 of file PageLayoutContext.php.

Referenced by TYPO3\CMS\Backend\View\PageLayoutContext\getContentTypeLabels().

◆ $itemLabels

array TYPO3\CMS\Backend\View\PageLayoutContext::$itemLabels = []
protected

Labels for columns, in format of TCA select options. Numerically indexed array of numerically indexed value arrays, with each sub-array containing at least two values and one optional third value:

  • ‪label (hardcoded or LLL:EXT:... reference. MANDATORY)
  • ‪value (colPos of column. MANDATORY)
  • ‪icon (icon name or file reference. OPTIONAL)

Definition at line 68 of file PageLayoutContext.php.

Referenced by TYPO3\CMS\Backend\View\PageLayoutContext\getItemLabels().

◆ $localizedPageRecord

array TYPO3\CMS\Backend\View\PageLayoutContext::$localizedPageRecord = null
protected

◆ $pageId

int TYPO3\CMS\Backend\View\PageLayoutContext::$pageId
protected

◆ $siteLanguage

SiteLanguage TYPO3\CMS\Backend\View\PageLayoutContext::$siteLanguage
protected

◆ $siteLanguages

array TYPO3\CMS\Backend\View\PageLayoutContext::$siteLanguages = []
protected