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

Public Member Functions

 __construct (array $pageRecord, BackendLayout $backendLayout)
 
 cloneForLanguage (SiteLanguage $language)
 
 setSiteLanguage (SiteLanguage $siteLanguage)
 
 getBackendLayout ()
 
 getDrawingConfiguration ()
 
 getBackendUser ()
 
 getPageRecord ()
 
 getPageId ()
 
SiteLanguage[] getSiteLanguages ()
 
SiteLanguage[] getLanguagesToShow ()
 
 getSiteLanguage (?int $languageId=null)
 
 isPageEditable ()
 
 getAllowNewContent ()
 
 getContentTypeLabels ()
 
 getItemLabels ()
 
 getLanguageModeLabelClass ()
 
 getLanguageMode ()
 
 getLanguageModeIdentifier ()
 
 getNewLanguageOptions ()
 
 getLocalizedPageTitle ()
 
 getLocalizedPageRecord ()
 

Protected Member Functions

 getLanguageService ()
 

Protected Attributes

BackendLayout $backendLayout
 
DrawingConfiguration $drawingConfiguration
 
ContentFetcher $contentFetcher
 
array $pageRecord
 
array null $localizedPageRecord
 
int $pageId
 
SiteLanguage[] $siteLanguages
 
SiteLanguage $siteLanguage
 
SiteInterface $site
 
array $contentTypeLabels = array( )
 
array $itemLabels = array( )
 

Detailed Description

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

Definition at line 43 of file PageLayoutContext.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\View\PageLayoutContext::__construct ( array  $pageRecord,
BackendLayout  $backendLayout 
)

Member Function Documentation

◆ cloneForLanguage()

◆ getAllowNewContent()

◆ getBackendLayout()

◆ getBackendUser()

◆ getContentTypeLabels()

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

◆ 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 254 of file PageLayoutContext.php.

◆ getLanguageService()

◆ getLanguagesToShow()

◆ getLocalizedPageRecord()

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

◆ getLocalizedPageTitle()

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

◆ getNewLanguageOptions()

◆ getPageId()

◆ getPageRecord()

◆ getSiteLanguage()

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

◆ getSiteLanguages()

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

◆ isPageEditable()

◆ setSiteLanguage()

Member Data Documentation

◆ $backendLayout

BackendLayout TYPO3\CMS\Backend\View\PageLayoutContext::$backendLayout
protected

◆ $contentFetcher

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

Definition at line 55 of file PageLayoutContext.php.

◆ $contentTypeLabels

array TYPO3\CMS\Backend\View\PageLayoutContext::$contentTypeLabels = array( )
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 86 of file PageLayoutContext.php.

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

◆ $drawingConfiguration

DrawingConfiguration TYPO3\CMS\Backend\View\PageLayoutContext::$drawingConfiguration
protected

◆ $itemLabels

array TYPO3\CMS\Backend\View\PageLayoutContext::$itemLabels = array( )
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 98 of file PageLayoutContext.php.

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

◆ $localizedPageRecord

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

◆ $pageId

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

◆ $pageRecord

◆ $site

SiteInterface TYPO3\CMS\Backend\View\PageLayoutContext::$site
protected

Definition at line 79 of file PageLayoutContext.php.

◆ $siteLanguage

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

◆ $siteLanguages

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