SilverStripe\AssetAdmin\Forms\PreviewImageField
For providing schema data to the client side to build a preview field with upload replacement feature
Synopsis
class PreviewImageField
extends FormField
{
- // members
- protected $recordID = NULL;
- protected $schemaDataType = FormField::SCHEMA_DATA_TYPE_CUSTOM;
- protected string $schemaComponent = 'PreviewImageField';
- // methods
- public void getSchemaDataDefaults()
- public void getSchemaStateDefaults()
- public void performReadonlyTransformation()
- public DataObject getRecord()
- public $this setRecordID()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
protected
- $recordID — int
- $schemaComponent
- $schemaDataType