‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem Class Reference
Inheritance diagram for TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem:
TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject

Public Member Functions

 __construct (PageLayoutContext $context, protected readonly GridColumn $column, protected array $record, protected readonly string $table='tt_content')
 
 isVersioned ()
 
 getPreview ()
 
 getWrapperClassName ()
 
 isDelible ()
 
 getDeleteUrl ()
 
 getDeleteMessage ()
 
 getFooterInfo ()
 
 getContentTypeLabel ()
 
 getIcons ()
 
 getSiteLanguage ()
 
 getRecord ()
 
 setRecord (array $record)
 
 getColumn ()
 
 getTranslations ()
 
 addTranslation (int $languageId, GridColumnItem $translation)
 
 isDisabled ()
 
 isEditable ()
 
 isDragAndDropAllowed ()
 
 isInconsistentLanguage ()
 
 getNewContentAfterUrl ()
 
 getVisibilityToggleUrl ()
 
 getVisibilityToggleTitle ()
 
 getVisibilityToggleIconName ()
 
 isVisibilityToggling ()
 
 getEditUrl ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject
 __construct (protected PageLayoutContext $context)
 
 getContext ()
 

Protected Member Functions

int getReferenceCount (int $uid)
 
 getTypeColumn ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

array $translations = []
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject
readonly IconFactory $iconFactory
 

Detailed Description

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

Definition at line 44 of file GridColumnItem.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::__construct ( PageLayoutContext  $context,
protected readonly GridColumn  $column,
protected array  $record,
protected readonly string  $table = 'tt_content' 
)

Definition at line 51 of file GridColumnItem.php.

Member Function Documentation

◆ addTranslation()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::addTranslation ( int  $languageId,
GridColumnItem  $translation 
)

Definition at line 223 of file GridColumnItem.php.

◆ getColumn()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getColumn ( )

Definition at line 213 of file GridColumnItem.php.

◆ getContentTypeLabel()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getContentTypeLabel ( )

◆ getDeleteMessage()

◆ getDeleteUrl()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getDeleteUrl ( )

Definition at line 116 of file GridColumnItem.php.

◆ getEditUrl()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getEditUrl ( )

Definition at line 338 of file GridColumnItem.php.

◆ getFooterInfo()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getFooterInfo ( )

◆ getIcons()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getIcons ( )

◆ getNewContentAfterUrl()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getNewContentAfterUrl ( )

Definition at line 278 of file GridColumnItem.php.

◆ getPreview()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getPreview ( )

Definition at line 65 of file GridColumnItem.php.

◆ getRecord()

◆ getReferenceCount()

int TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getReferenceCount ( int  $uid)
protected

Gets the number of records referencing the record with the UID $uid in the current table.

Returns
‪int The number of references to record $uid in table

Definition at line 358 of file GridColumnItem.php.

References TYPO3\CMS\Webhooks\Message\$uid.

Referenced by TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem\getDeleteMessage().

◆ getSiteLanguage()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getSiteLanguage ( )

◆ getTranslations()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getTranslations ( )

◆ getTypeColumn()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getTypeColumn ( )
protected

◆ getVisibilityToggleIconName()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getVisibilityToggleIconName ( )

Definition at line 321 of file GridColumnItem.php.

References $GLOBALS.

◆ getVisibilityToggleTitle()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getVisibilityToggleTitle ( )

◆ getVisibilityToggleUrl()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getVisibilityToggleUrl ( )

Definition at line 290 of file GridColumnItem.php.

References $GLOBALS.

◆ getWrapperClassName()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::getWrapperClassName ( )

◆ isDelible()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::isDelible ( )

◆ isDisabled()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::isDisabled ( )

◆ isDragAndDropAllowed()

◆ isEditable()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::isEditable ( )

◆ isInconsistentLanguage()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::isInconsistentLanguage ( )

◆ isVersioned()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::isVersioned ( )

Definition at line 60 of file GridColumnItem.php.

◆ isVisibilityToggling()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::isVisibilityToggling ( )

◆ setRecord()

TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::setRecord ( array  $record)

Definition at line 208 of file GridColumnItem.php.

References TYPO3\CMS\Webhooks\Message\$record.

Member Data Documentation

◆ $translations

array TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem::$translations = []
protected