class SetSubtreesCommand implements CommandInterface (View source)

Defines an AJAX command that sets the toolbar subtrees.

Properties

protected array $subtrees

The toolbar subtrees.

Methods

__construct(array $subtrees)

Constructs a SetSubtreesCommand object.

render()

Return an array to be run through json_encode and sent to the client.

Details

__construct(array $subtrees)

Constructs a SetSubtreesCommand object.

Parameters

array $subtrees

The toolbar subtrees that will be set.

render()

Return an array to be run through json_encode and sent to the client.