TractorCow\Fluent\Forms\VisibleLocalesColumn
Adds a "visible in locales" column to a gridfield
Synopsis
class VisibleLocalesColumn
implements
GridField_ColumnProvider
{
- // methods
- public void augmentColumns()
- public array getColumnsHandled()
- public string getColumnContent()
- public array getColumnAttributes()
- public array getColumnMetadata()
- // Inherited methods from FluentBadgeTrait
- protected DBField|null addFluentBadge()
- public DBField|null getBadge()
- protected string generateBadgeHTML()
Hierarchy
Uses
Implements
- SilverStripe\Forms\GridField\GridField_ColumnProvider
Methods
public
- augmentColumns() — Modify the list of columns displayed in the table.
- getColumnAttributes() — Attributes for the element containing the content returned by {@link getColumnContent()}.
- getColumnContent() — HTML for the column, content of the <td> element.
- getColumnMetadata() — Additional metadata about the column which can be used by other components, e.g. to set a title for a search column header.
- getColumnsHandled() — Names of all columns which are affected by this component.
Inherited from TractorCow\Fluent\Extension\Traits\FluentBadgeTrait
protected
- addFluentBadge() — Add the Fluent state badge before any existing badges and return the result
- generateBadgeHTML()
public
- getBadge() — Given a record with Fluent enabled, return a badge that represents the state of it in the current locale