Restruct\Silverstripe\SiteTreeButtons\GridFieldAddNewSiteTreeItemButton
This component provides a button for opening the default add new form for SiteTree items (Pages).
Synopsis
class GridFieldAddNewSiteTreeItemButton
extends GridFieldAddNewButton
{
- // members
- protected $parentID;
- // methods
- public void __construct()
- public int getParentID()
- public $this setParentID()
- public void getHTMLFragments()
Hierarchy
Extends
- SilverStripe\Forms\GridField\GridFieldAddNewButton
Members
protected
- $parentID — int
Methods
public
- __construct()
- getHTMLFragments()
- getParentID() — Use the specified parent ID. If not set, default to the current page.
- setParentID() — Allow user to customize the parent page ID.