VersionedGridFieldState
class VersionedGridFieldState implements GridField_ColumnProvider (View source)
Methods
No description
Column to decorate with version state
No description
Search list for default column
No description
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 {@link 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
__construct($versionedLabelFields = ['Name', 'Title'])
string
getColumn()
Column to decorate with version state
VersionedGridFieldState
setColumn(string $column)
array
getVersionedLabelFields()
Search list for default column
VersionedGridFieldState
setVersionedLabelFields(array $versionedLabelFields)
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, DataObject $record, string $columnName)
HTML for the column, content of the
array
getColumnAttributes(GridField $gridField, DataObject $record, string $columnName)
Attributes for the element containing the content returned by {@link 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.