SilverStripe\Link\Extensions\ModalController
Extensions to apply to ModalController so it knows how to handle the DynamicLink action.
This action receive a link type key and some link data as a JSON string and retrieve a Form Schema for a
specific Link Type.
Synopsis
class ModalController
extends Extension
{
- // members
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- // methods
- public Form DynamicLink()
- private array getContext()
- private array getData()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $allowed_actions
- $url_handlers
Methods
private
- getContext() — Build the context to pass to the Form Link Factory
- getData() — Extract the Link Data out of the Request.
public
- DynamicLink() — Builds and returns the external link form