SilverStripe\VersionedAdmin\Forms\HistoryViewerField
Synopsis
class HistoryViewerField
extends FormField
{
- // members
- private static integer $default_page_size = 30;
- protected $contextKey;
- protected string $schemaComponent = 'HistoryViewer';
- protected string $inputType = '';
- // methods
- public void __construct()
- protected void setupDefaultClasses()
- public DataObject|null getSourceRecord()
- public boolean getPreviewEnabled()
- private void getIsRevertable()
- public void getContextKey()
- public void setContextKey()
- public void getSchemaDataDefaults()
- public array getAttributes()
- public void Type()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
private
- $default_page_size
—
int
The default pagination page size
protected
- $contextKey
—
string
Unique context key used to differentiate the different use cases for HistoryViewer - $inputType
- $schemaComponent
Methods
private
protected
public
- __construct()
- Type()
- getAttributes() — When not used in a React form factory context, this adds the schema data to SilverStripe template rendered attributes lists
- getContextKey()
- getPreviewEnabled() — Get whether the record is previewable
- getSchemaDataDefaults() — Provide the necessary input data for React to power the history viewer
- getSourceRecord() — Get the source record to view history for
- setContextKey()