ElementInformationController

class \TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController

Modal rendering detail about a record. Reached by "Display information" on click menu and list module.

Attributes

#[AsController]

Table of Contents

Properties

$fileObject  : File|null
$folderObject  : Folder|null
$iconFactory  : IconFactory
$moduleTemplateFactory  : ModuleTemplateFactory
$resourceFactory  : ResourceFactory
$row  : array
$table  : string|null
$tcaSchemaFactory  : TcaSchemaFactory
$type  : string
Type of element: "db", "file" or "folder"
$uriBuilder  : UriBuilder
$visibleSchemaFieldsCollector  : VisibleSchemaFieldsCollector

Methods

__construct()  : mixed
getFileObject()  : File|null
getFolderObject()  : Folder|null
getPageTitle()  : array
Get page title with icon, table title and record title
getRow()  : array
getTable()  : string|null
mainAction()  : ResponseInterface
Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now
canAccessPage()  : bool
getBackendUser()  : BackendUserAuthentication
getExtraFields()  : array
Get the extra fields (uid, timestamps, creator) for the table
getFieldList()  : array
Get the list of fields that should be shown for the given table
getLabelForTableColumn()  : string
Get field name for specified table/column name
getLanguageService()  : LanguageService
getPreview()  : array
Get preview for current record
getPropertiesForTable()  : array
Get property array for html table
getRecordActions()  : array
Returns the record actions
getReferences()  : array
Get references section (references from and references to current record)
makeRef()  : array
Make reference display
makeRefFrom()  : array
Make reference display (what this elements points to)
transformFileReferenceToRecordReference()  : array|null
Convert FAL file reference (sys_file_reference) to reference index (sys_refindex) table format

Properties

$type

Type of element: "db", "file" or "folder"

protected string $type = 'db'

Methods

__construct()

public __construct(IconFactory $iconFactory, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory, ResourceFactory $resourceFactory, TcaSchemaFactory $tcaSchemaFactory, VisibleSchemaFieldsCollector $visibleSchemaFieldsCollector, SearchableSchemaFieldsCollector $searchableSchemaFieldsCollector) : mixed

Parameters

$iconFactory : IconFactory
$uriBuilder : UriBuilder
$moduleTemplateFactory : ModuleTemplateFactory
$resourceFactory : ResourceFactory
$tcaSchemaFactory : TcaSchemaFactory
$visibleSchemaFieldsCollector : VisibleSchemaFieldsCollector
$searchableSchemaFieldsCollector : SearchableSchemaFieldsCollector

getPageTitle()

Get page title with icon, table title and record title

public getPageTitle() : array

Return values

array

getRow()

public getRow() : array

Return values

array

getTable()

public getTable() : string|null

Return values

string|null

mainAction()

Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now

public mainAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

canAccessPage()

protected canAccessPage(TcaSchema $schema, array $record) : bool

Parameters

$schema : TcaSchema
$record : array

Record to be checked (ensure pid is resolved for workspaces)

Return values

bool

getExtraFields()

Get the extra fields (uid, timestamps, creator) for the table

protected getExtraFields() : array

Return values

array

getFieldList()

Get the list of fields that should be shown for the given table

protected getFieldList(string $table, array $row) : array

Parameters

$table : string
$row : array

Return values

array

getLabelForTableColumn()

Get field name for specified table/column name

protected getLabelForTableColumn(TcaSchema $schema, string $fieldName) : string

Parameters

$schema : TcaSchema
$fieldName : string

Column name

Return values

string

getPreview()

Get preview for current record

protected getPreview(ServerRequestInterface $request) : array

Parameters

$request : ServerRequestInterface

Return values

array

getPropertiesForTable()

Get property array for html table

protected getPropertiesForTable() : array

Return values

array

getRecordActions()

Returns the record actions

protected getRecordActions(TcaSchema $schema, int $uid, ServerRequestInterface $request) : array

Parameters

$schema : TcaSchema
$uid : int
$request : ServerRequestInterface

Tags

throws
RouteNotFoundException

Return values

array

getReferences()

Get references section (references from and references to current record)

protected getReferences(ServerRequestInterface $request, int|string $uid) : array

Parameters

$request : ServerRequestInterface
$uid : int|string

Return values

array

makeRef()

Make reference display

protected makeRef(string $table, int|File $ref, ServerRequestInterface $request) : array

Parameters

$table : string

Table name

$ref : int|File

Filename or uid

$request : ServerRequestInterface

Tags

throws
RouteNotFoundException

Return values

array

makeRefFrom()

Make reference display (what this elements points to)

protected makeRefFrom(string $table, int $ref, ServerRequestInterface $request) : array

Parameters

$table : string

Table name

$ref : int

Filename or uid

$request : ServerRequestInterface

Return values

array

transformFileReferenceToRecordReference()

Convert FAL file reference (sys_file_reference) to reference index (sys_refindex) table format

protected transformFileReferenceToRecordReference(array $referenceRecord) : array|null

Parameters

$referenceRecord : array

Return values

array|null
On this page