SilverStripe\AssetAdmin\Forms\RemoteFileFormFactory
Synopsis
class RemoteFileFormFactory
implements
FormFactory
{
- // members
- private static array $fileurl_scheme_whitelist = ;
- private static array $fileurl_scheme_blacklist = ;
- private static array $fileurl_domain_whitelist = ;
- private static array $fileurl_domain_blacklist = ;
- private static array $fileurl_port_whitelist = ;
- private static array $fileurl_port_blacklist = ;
- private static bool $enabled = true;
- // methods
- public Form getForm()
- public void getRequiredContext()
- protected void getFormFields()
- protected void getFormActions()
- protected bool validateUrl()
- protected bool validateEmbed()
- protected FieldList getCreateFormFields()
- protected FieldList getEditFormFields()
- protected void validateURLScheme()
- protected void validateURLHost()
- protected void validateURLPort()
- protected void validateURLAbsolute()
Hierarchy
Uses
- SilverStripe\Core\Extensible
- SilverStripe\Core\Config\Configurable
Implements
- SilverStripe\Forms\FormFactory
Members
private
- $enabled
—
SilverStripe\AssetAdmin\Forms\bool
Allow oembed to be disabled - $fileurl_domain_blacklist
—
array
Blacklist of domains. For example, live sites should probably include 'localhost' and other protected urls. - $fileurl_domain_whitelist
—
array
Force whitelist for resource domains to the given list - $fileurl_port_blacklist
—
array
Blacklist of ports allowed. - $fileurl_port_whitelist
—
array
Whitelist of ports allowed. - $fileurl_scheme_blacklist
—
array
Blacklist of resources. Takes priority over whitelists if both are provided. - $fileurl_scheme_whitelist
—
array
Force whitelist for resource protocols to the given list.
Methods
protected
- getCreateFormFields() — Get form fields for create new embed
- getEditFormFields() — Get form fields for edit form
- getFormActions()
- getFormFields()
- validateEmbed() — Checks if the embed generated is not just a link
- validateURLAbsolute()
- validateURLHost()
- validateURLPort()
- validateURLScheme()
- validateUrl()