‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Page\PageLayoutResolver Class Reference

Public Member Functions

 getLayoutForPage (array $page, array $rootLine)
 

Detailed Description

Finds the proper layout for a page, using the database fields "backend_layout" and "backend_layout_next_level".

The most crucial part is that "backend_layout" is only applied for the CURRENT level, whereas backend_layout_next_level.

Used in TypoScript as "getData: pagelayout".

as this might get moved to EXT:core if usages in TYPO3 Backend are helpful as well.

Definition at line 31 of file PageLayoutResolver.php.

Member Function Documentation

◆ getLayoutForPage()

TYPO3\CMS\Frontend\Page\PageLayoutResolver::getLayoutForPage ( array  $page,
array  $rootLine 
)

Check if the current page has a value in the DB field "backend_layout" if empty, check the root line for "backend_layout_next_level" Same as TypoScript: field = backend_layout ifEmpty.data = levelfield:-2, backend_layout_next_level, slide ifEmpty.ifEmpty = default

Definition at line 41 of file PageLayoutResolver.php.