Grid extends AbstractGridObject
Grid
Main rows-and-columns structure representing the rows and columns of a BackendLayout in object form. Contains getter methods to return rows and sum of "colspan" values assigned to columns in rows.
Contains a tree of grid-related objects:
- Grid
- GridRow
- GridColumn
- GridColumnItem (one per record)
 
 
- GridColumn
 
- GridRow
Accessed in Fluid templates.
this is experimental and subject to change in TYPO3 v10 / v11
Table of Contents
Properties
- $allowNewContent : bool
- $context : PageLayoutContext
- $iconFactory : IconFactory
- $rows : array<string|int, GridRow>
Methods
- __construct() : mixed
- addRow() : void
- getColumns() : iterable<string|int, mixed>
- getContext() : PageLayoutContext
- getRows() : array<string|int, GridRow>
- getSpan() : int
- getUniqueId() : string
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
Properties
$allowNewContent
        protected
            bool
    $allowNewContent
     = true
    
    
    
    
    
$context
        protected
            PageLayoutContext
    $context
    
    
    
    
    
    
$iconFactory
        protected
            IconFactory
    $iconFactory
    
    
    
    
    
    
$rows
        protected
            array<string|int, GridRow>
    $rows
     = []
    
    
    
    
    
Methods
__construct()
    public
                    __construct(PageLayoutContext $context) : mixed
    Parameters
- $context : PageLayoutContext
addRow()
    public
                    addRow(GridRow $row) : void
    Parameters
- $row : GridRow
getColumns()
    public
                    getColumns() : iterable<string|int, mixed>
    Return values
iterable<string|int, mixed>getContext()
    public
                    getContext() : PageLayoutContext
    Return values
PageLayoutContextgetRows()
    public
                    getRows() : array<string|int, GridRow>
    Return values
array<string|int, GridRow>getSpan()
    public
                    getSpan() : int
    Return values
intgetUniqueId()
    public
                    getUniqueId() : string
    Return values
stringgetBackendUser()
    protected
                    getBackendUser() : BackendUserAuthentication
    Return values
BackendUserAuthenticationgetLanguageService()
    protected
                    getLanguageService() : LanguageService