GridColumnItem extends AbstractGridObject
Grid Column Item
Model/proxy around a single record which appears in a grid column in the page layout. Returns titles, urls etc. and performs basic assertions on the contained content element record such as is-versioned, is-editable, is-delible and so on.
Accessed from Fluid templates.
this is experimental and subject to change in TYPO3 v10 / v11
Table of Contents
Properties
- $column : GridColumn
- $context : PageLayoutContext
- $iconFactory : IconFactory
- $record : array<string|int, mixed>
- $schema : TcaSchema
- $table : string
- $translations : array<string|int, GridColumnItem>
Methods
- __construct() : mixed
- addTranslation() : GridColumnItem
- getColumn() : GridColumn
- getContentTypeLabel() : string
- getContext() : PageLayoutContext
- getDeleteMessage() : string
- getDeleteUrl() : string
- getEditUrl() : string
- getFooterInfo() : string
- getIcons() : string
- getNewContentAfterUrl() : string
- getPreview() : string
- getRecord() : array<string|int, mixed>
- getRecordType() : string
- getSiteLanguage() : SiteLanguage
- getTable() : string
- getTranslations() : array<string|int, mixed>
- getTypeColumn() : string
- getVisibilityToggleIconName() : string
- getVisibilityToggleTitle() : string
- getVisibilityToggleUrl() : string
- getWrapperClassName() : string
- isDelible() : bool
- isDisabled() : bool
- isDragAndDropAllowed() : bool
- isEditable() : bool
- isInconsistentLanguage() : bool
- isVersioned() : bool
- isVisibilityToggling() : bool
- setRecord() : void
- getBackendUser() : BackendUserAuthentication
- getDisabledFieldName() : string|null
- getLabelFromItemListMerged() : string
- getLanguageService() : LanguageService
- getReferenceCount() : int
- Gets the number of records referencing the record with the UID $uid in the current table.
Properties
$column read-only
        protected
            GridColumn
    $column
    
    
    
    
    
    
$context
        protected
            PageLayoutContext
    $context
    
    
    
    
    
    
$iconFactory read-only
        protected
            IconFactory
    $iconFactory
    
    
    
    
    
    
$record
        protected
            array<string|int, mixed>
    $record
    
    
    
    
    
    
$schema
        protected
            TcaSchema
    $schema
    
    
    
    
    
    
$table read-only
        protected
            string
    $table
     = 'tt_content'
    
    
    
    
    
$translations
        protected
            array<string|int, GridColumnItem>
    $translations
     = []
    
    
    
    
    
Methods
__construct()
    public
                    __construct(PageLayoutContext $context, GridColumn $column, array<string|int, mixed> $record[, string $table = 'tt_content' ]) : mixed
    Parameters
- $context : PageLayoutContext
- $column : GridColumn
- $record : array<string|int, mixed>
- $table : string = 'tt_content'
addTranslation()
    public
                    addTranslation(int $languageId, GridColumnItem $translation) : GridColumnItem
    Parameters
- $languageId : int
- $translation : GridColumnItem
Return values
GridColumnItemgetColumn()
    public
                    getColumn() : GridColumn
    Return values
GridColumngetContentTypeLabel()
    public
                    getContentTypeLabel() : string
    Return values
stringgetContext()
    public
                    getContext() : PageLayoutContext
    Return values
PageLayoutContextgetDeleteMessage()
    public
                    getDeleteMessage() : string
    Return values
stringgetDeleteUrl()
    public
                    getDeleteUrl() : string
    Return values
stringgetEditUrl()
    public
                    getEditUrl() : string
    Return values
stringgetFooterInfo()
    public
                    getFooterInfo() : string
    Return values
stringgetIcons()
    public
                    getIcons() : string
    Return values
stringgetNewContentAfterUrl()
    public
                    getNewContentAfterUrl() : string
    Return values
stringgetPreview()
    public
                    getPreview() : string
    Return values
stringgetRecord()
    public
                    getRecord() : array<string|int, mixed>
    Return values
array<string|int, mixed>getRecordType()
    public
                    getRecordType() : string
    Return values
stringgetSiteLanguage()
    public
                    getSiteLanguage() : SiteLanguage
    Return values
SiteLanguagegetTable()
    public
                    getTable() : string
    Return values
stringgetTranslations()
    public
                    getTranslations() : array<string|int, mixed>
    Return values
array<string|int, mixed>getTypeColumn()
    public
                    getTypeColumn() : string
    Return values
stringgetVisibilityToggleIconName()
    public
                    getVisibilityToggleIconName() : string
    Return values
stringgetVisibilityToggleTitle()
    public
                    getVisibilityToggleTitle() : string
    Return values
stringgetVisibilityToggleUrl()
    public
                    getVisibilityToggleUrl() : string
    Return values
stringgetWrapperClassName()
    public
                    getWrapperClassName() : string
    Return values
stringisDelible()
    public
                    isDelible() : bool
    Return values
boolisDisabled()
    public
                    isDisabled() : bool
    Return values
boolisDragAndDropAllowed()
    public
                    isDragAndDropAllowed() : bool
    Return values
boolisEditable()
    public
                    isEditable() : bool
    Return values
boolisInconsistentLanguage()
    public
                    isInconsistentLanguage() : bool
    Return values
boolisVersioned()
    public
                    isVersioned() : bool
    Return values
boolisVisibilityToggling()
    public
                    isVisibilityToggling() : bool
    Return values
boolsetRecord()
    public
                    setRecord(array<string|int, mixed> $record) : void
    Parameters
- $record : array<string|int, mixed>
getBackendUser()
    protected
                    getBackendUser() : BackendUserAuthentication
    Return values
BackendUserAuthenticationgetDisabledFieldName()
    protected
                    getDisabledFieldName() : string|null
    Return values
string|nullgetLabelFromItemListMerged()
    protected
                    getLabelFromItemListMerged() : string
    Return values
stringgetLanguageService()
    protected
                    getLanguageService() : LanguageService
    Return values
LanguageServicegetReferenceCount()
Gets the number of records referencing the record with the UID $uid in the current table.
    protected
                    getReferenceCount(int $uid) : int
    Parameters
- $uid : int
Return values
int —The number of references to record $uid in table