VisibleLocalesColumn
class VisibleLocalesColumn implements GridField_ColumnProvider (View source)
Adds a "visible in locales" column to a gridfield
Traits
Methods
Add the Fluent state badge before any existing badges and return the result
Given a record with Fluent enabled, return a badge that represents the state of it in the current locale
Modify the list of columns displayed in the table.
HTML for the column, content of the
Attributes for the element containing the content returned by getColumnContent().
Additional metadata about the column which can be used by other components, e.g. to set a title for a search column header.
Details
        
                    protected        DBField|null
    addFluentBadge(DBField|null $badgeField, DataObject $record)
        
    
    Add the Fluent state badge before any existing badges and return the result
        
                            DBField|null
    getBadge(DataObject $record)
        
    
    Given a record with Fluent enabled, return a badge that represents the state of it in the current locale
        
                    protected        string
    generateBadgeHTML(DataObject $record, Locale $locale, array $extraProperties = [])
        
    
    No description
        
                            
    augmentColumns(GridField $gridField, array $columns)
        
    
    Modify the list of columns displayed in the table.
        
                            array
    getColumnsHandled(GridField $gridField)
        
    
    Names of all columns which are affected by this component.
        
                            string
    getColumnContent(GridField $gridField, ViewableData $record, string $columnName)
        
    
    HTML for the column, content of the
        
                            array
    getColumnAttributes(GridField $gridField, ViewableData $record, string $columnName)
        
    
    Attributes for the element containing the content returned by getColumnContent().
        
                            array
    getColumnMetadata(GridField $gridField, string $columnName)
        
    
    Additional metadata about the column which can be used by other components, e.g. to set a title for a search column header.