AbstractContentPagePositionMap

abstract class \TYPO3\CMS\Backend\Tree\View\AbstractContentPagePositionMap

Table of Contents

Properties

$cur_sys_language  : int
Can be set to the language id to select content elements for.
$backendLayoutView  : BackendLayoutView

Methods

__construct()  : mixed
printContentElementColumns()  : string
Creates HTML for inserting/moving content elements.
getBackendUser()  : BackendUserAuthentication
getColumnsConfiguration()  : array
Fetch TCA colPos list from BackendLayoutView and prepare for map generation.
getLanguageService()  : LanguageService
getRecordHeader()  : string
Create content element header (includes record type (CType) icon, content element title, etc.)
insertPositionIcon()  : string
Creates a linked position icon
printRecordMap()  : string
Creates the table with the content columns

Properties

$cur_sys_language

Can be set to the language id to select content elements for.

public int $cur_sys_language = \TYPO3\CMS\Core\Schema\LanguageMarker::DEFAULT_LANGUAGE

Methods

printContentElementColumns()

Creates HTML for inserting/moving content elements.

public printContentElementColumns(int $pid, array $pageInfo, ServerRequestInterface $request) : string

Parameters

$pid : int

page id onto which to insert content element.

$pageInfo : array
$request : ServerRequestInterface

Return values

string —

HTML

getColumnsConfiguration()

Fetch TCA colPos list from BackendLayoutView and prepare for map generation.

protected getColumnsConfiguration(int $pageId) : array

This also takes the "colPos_list" TSconfig into account.

Parameters

$pageId : int

Return values

array

getRecordHeader()

Create content element header (includes record type (CType) icon, content element title, etc.)

protected abstract getRecordHeader(array $row) : string

Parameters

$row : array

The element row

Return values

string —

HTML

insertPositionIcon()

Creates a linked position icon

protected abstract insertPositionIcon(array|null $row, int $colPos, int $pid) : string

Parameters

$row : array|null

The record row. If this is an array the link will cause an insert after this content element, otherwise the link will insert at the first position in the column.

$colPos : int

Column position value.

$pid : int

PID value.

Return values

string —

HTML

printRecordMap()

Creates the table with the content columns

protected printRecordMap(array $lines, array $tcaColumnsConfiguration, int $pid) : string

Parameters

$lines : array

Array with arrays of lines for each column

$tcaColumnsConfiguration : array

Column configuration array

$pid : int

The id of the page

Return values

string —

HTML

On this page