function SetSubtreesCommand::__construct

Same name in other branches
  1. 8.9.x core/modules/toolbar/src/Ajax/SetSubtreesCommand.php \Drupal\toolbar\Ajax\SetSubtreesCommand::__construct()
  2. 10 core/modules/toolbar/src/Ajax/SetSubtreesCommand.php \Drupal\toolbar\Ajax\SetSubtreesCommand::__construct()
  3. 11.x core/modules/toolbar/src/Ajax/SetSubtreesCommand.php \Drupal\toolbar\Ajax\SetSubtreesCommand::__construct()

Constructs a SetSubtreesCommand object.

Parameters

array $subtrees: The toolbar subtrees that will be set.

File

core/modules/toolbar/src/Ajax/SetSubtreesCommand.php, line 25

Class

SetSubtreesCommand
Defines an AJAX command that sets the toolbar subtrees.

Namespace

Drupal\toolbar\Ajax

Code

public function __construct($subtrees) {
    $this->subtrees = $subtrees;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.