SilverStripe\Versioned\VersionedGridFieldState\VersionedGridFieldState
Synopsis
class VersionedGridFieldState
implements
GridField_ColumnProvider
{
- // members
- protected $column = NULL;
- protected array $versionedLabelFields = ;
- // methods
- public void __construct()
- public string getColumn()
- public VersionedGridFieldState setColumn()
- public array getVersionedLabelFields()
- public VersionedGridFieldState setVersionedLabelFields()
- public void augmentColumns()
- public array getColumnsHandled()
- public string getColumnContent()
- public array getColumnAttributes()
- public array getColumnMetadata()
- protected array getStatusFlags()
Hierarchy
Implements
- SilverStripe\Forms\GridField\GridField_ColumnProvider
Members
protected
- $column — string
-
$versionedLabelFields
Fields/columns to display version states. We can specifies more than one field but states only show in the first column found.
Methods
protected
- getStatusFlags() — A flag provides the user with additional data about the current item status, for example a "removed from draft" status. Each item can have more than one status flag. Returns a map of a unique key to a (localized) title for the flag. The unique key can be reused as a CSS class.
public
- __construct()
- augmentColumns() — Modify the list of columns displayed in the table.
- getColumn() — Column to decorate with version state
- 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.
- getVersionedLabelFields() — Search list for default column
- setColumn()
- setVersionedLabelFields()