SilverStripe\Widgets\Tests\WidgetControllerTest\TestWidget
Synopsis
class TestWidget
extends Widget
implements
TestOnly
{
- // members
- private static string $table_name = 'WidgetControllerTest_TestWidget';
- private static array $db = ;
- // Inherited members from Widget
- protected WidgetController $controller;
- // Inherited methods from Widget
- public void populateDefaults()
- public string WidgetHolder()
- public string forTemplate()
- public string Content()
- public string getCMSTitle()
- public string getDescription()
- public string DescriptionSegment()
- public string EditableSegment()
- public FieldList getCMSFields()
- public FieldList CMSEditor()
- public string ClassName()
- public string Name()
- public WidgetController getController()
- public void populateFromPostData()
Hierarchy
Members
Methods
Inherited from SilverStripe\Widgets\Model\Widget
public
- CMSEditor()
- ClassName() — A fully qualified class name is returned with underscores instead of backslashes so it is HTML safe. Dashes can't be used as they're handled in the Javascript for other purposes.
- Content() — Renders the widget content in a custom template with the same name as the current class. This should be the main point of output customization.
- DescriptionSegment()
- EditableSegment()
- Name()
- WidgetHolder() — Note: Overloaded in {@link WidgetController}.
- forTemplate() — Default way to render widget in templates.
- getCMSFields()
- getCMSTitle()
- getController()
- getDescription()
- populateDefaults()
- populateFromPostData()