SilverStripe\Subsites\Forms\SubsitesTreeDropdownField
Wraps around a TreedropdownField to add ability for temporary switching of subsite sessions.
Synopsis
class SubsitesTreeDropdownField
extends TreeDropdownField
{
- // members
- private static array $allowed_actions = ;
- protected integer $subsiteId = 0;
- protected array $extraClasses = ;
- // methods
- public void Field()
- public $this setSubsiteId()
- public int getSubsiteId()
- public void tree()
Hierarchy
Extends
- SilverStripe\Forms\TreeDropdownField
Members
private
- $allowed_actions
protected
- $extraClasses
—
array
Extra HTML classes - $subsiteId — int
Methods
public
- Field()
- getSubsiteId() — Get the subsite ID to use when generating the tree
- setSubsiteId() — Sets the subsite ID to use when generating the tree
- tree() — Get the CMS tree with the provided subsite ID applied to the state