SilverStripe\Lumberjack\Forms\GridFieldSiteTreeAddNewButton
This component creates a dropdown of possible page types and a button to create a new page.
This bypasses GridFieldDetailForm to use the standard CMS.
- Author: Michael Strong <mstrong@silverstripe.org>
Synopsis
class GridFieldSiteTreeAddNewButton
extends GridFieldAddNewButton
implements
GridField_ActionProvider
{
- // methods
- public boolean getAllowedChildren()
- public void getHTMLFragments()
- public array getActions()
- public HTTPResponse|null handleAction()
Hierarchy
Extends
- SilverStripe\Forms\GridField\GridFieldAddNewButton
Implements
- SilverStripe\Forms\GridField\GridField_ActionProvider
Methods
public
- getActions() — Provide actions to this component.
- getAllowedChildren() — Determine the list of classnames and titles allowed for a given parent object
- getHTMLFragments()
- handleAction() — Handles the add action, but only acts as a wrapper for {@link CMSPageAddController::doAdd()}