SilverStripe\Widgets\Tests\WidgetControllerTest\TestWidgetController
Synopsis
class TestWidgetController
extends WidgetController
implements
TestOnly
{
- // members
- private static array $allowed_actions = ;
- // Inherited members from WidgetController
- protected Widget $widget;
- // Inherited methods from WidgetController
- public void __construct()
- public string Link()
- public Controller getParentController()
- public Widget getWidget()
- public string Content()
- public string WidgetHolder()
- public string editablesegment()
Hierarchy
Members
Methods
public
Inherited from SilverStripe\Widgets\Model\WidgetController
public
- Content() — Overloaded from {@link Widget->Content()} to allow for controller / form linking.
- Link()
- WidgetHolder() — Overloaded from {@link Widget->WidgetHolder()} to allow for controller/ form linking.
- editablesegment() — Uses the `WidgetEditor.ss` template and {@link Widget->editablesegment()} to render a administrator-view of the widget. It is assumed that this view contains form elements which are submitted and saved through {@link WidgetAreaEditor} within the CMS interface.
- getParentController() — Cycles up the controller stack until it finds a non-widget controller This is needed becauseController::currreturns the widget controller, which means anyLinkfunction turns into endless loop.
- getWidget()