SilverStripe\AssetAdmin\Extensions\RemoteFileModalExtension
Decorates ModalController with an insert-oembed modal
Synopsis
class RemoteFileModalExtension
extends Extension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public ModalController getOwner()
- protected HTTPRequest getRequest()
- protected FormSchema getFormSchema()
- public Form remoteCreateForm()
- public Form remoteEditForm()
- public HTTPResponse remoteEditFormSchema()
- protected HTTPResponse getSchemaResponse()
Hierarchy
Extends
- SilverStripe\Core\Extension
Tasks
Line | Task |
---|---|
131+ | de-dupe this logic with LeftAndMain::getSchemaResponse() |
Members
private
- $allowed_actions
Methods
protected
- getFormSchema()
- getRequest()
- getSchemaResponse() — Generate schema for the given form based on the X-Formschema-Request header value
public
- getOwner()
- remoteCreateForm() — Form for creating a new OEmbed object in the WYSIWYG, used by the InsertEmbedModal component
- remoteEditForm() — Form for editing a OEmbed object in the WYSIWYG, used by the InsertEmbedModal component
- remoteEditFormSchema() — Capture the schema handling process, as there is validation done to the URL provided before form is generated